mirror of
https://github.com/APercy/automobiles_pck
synced 2025-06-18 14:58:02 +02:00
fix rolling min angle
This commit is contained in:
parent
9bbb7bc9b4
commit
4e158db58d
@ -827,7 +827,7 @@ minetest.register_entity("automobiles_delorean:delorean", {
|
||||
local turn_effect_speed = longit_speed
|
||||
if turn_effect_speed > 10 then turn_effect_speed = 10 end
|
||||
newroll = (-self._steering_angle/100)*(turn_effect_speed/10)
|
||||
if math.abs(self._steering_angle) < 5 then newroll = 0 end
|
||||
if math.abs(self._steering_angle) < 10 then newroll = 0 end
|
||||
end
|
||||
|
||||
if newyaw~=yaw or newpitch~=pitch then self.object:set_rotation({x=newpitch,y=newyaw,z=newroll}) end
|
||||
|
Loading…
Reference in New Issue
Block a user