mirror of
https://github.com/APercy/automobiles_pck
synced 2025-07-23 06:38:55 +02:00
fix
This commit is contained in:
parent
fd33561d81
commit
77d4b66fef
@ -448,8 +448,8 @@ minetest.register_entity("automobiles_roadster:roadster", {
|
||||
--control
|
||||
local steering_angle_max = 30
|
||||
local steering_speed = 40
|
||||
if math.abs(longit_speed) > 1 then
|
||||
steering_speed = steering_speed / (math.abs(longit_speed)/4)
|
||||
if math.abs(longit_speed) > 3 then
|
||||
steering_speed = steering_speed / math.abs(longit_speed*0.25)
|
||||
end
|
||||
accel, stop = automobiles_lib.control(self, dtime, hull_direction, longit_speed, longit_drag, later_drag, accel, roadster.max_acc_factor, roadster.max_speed, steering_angle_max, steering_speed)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user