mirror of
https://github.com/APercy/automobiles_pck
synced 2025-11-07 15:28:01 +01:00
fix direction intensity
This commit is contained in:
parent
b7ee0f99ca
commit
75ccb60613
@ -2,6 +2,4 @@ Motorcycle
|
||||
|
||||
This mod adds a motorcycle to minetest
|
||||
|
||||
|
||||
|
||||
licence see the files
|
||||
|
||||
@ -405,7 +405,7 @@ minetest.register_entity("automobiles_motorcycle:motorcycle", {
|
||||
if math.abs(self._steering_angle)>5 then
|
||||
local turn_rate = math.rad(40)
|
||||
newyaw = yaw + dtime*(1 - 1 / (math.abs(longit_speed) + 1)) *
|
||||
self._steering_angle / 30 * turn_rate * automobiles_lib.sign(longit_speed)
|
||||
self._steering_angle / 20 * turn_rate * automobiles_lib.sign(longit_speed)
|
||||
end
|
||||
|
||||
--[[
|
||||
|
||||
Loading…
Reference in New Issue
Block a user