Boats: Properly use 'dtime' for consistent responsiveness
authorParamat <paramat@users.noreply.github.com>
Sat, 7 Jul 2018 20:00:31 +0000 (21:00 +0100)
committerGitHub <noreply@github.com>
Sat, 7 Jul 2018 20:00:31 +0000 (21:00 +0100)
commit5c8bd349577f3967ab541a5da7f3a5f6f2ff5971
treed7b880946a97c201b0ec02bd5a354fc5478a6ab9
parent7e1b07fdddae7a397d82d446d4a37577c1527b7b
Boats: Properly use 'dtime' for consistent responsiveness

Previously, boat responsiveness varied greatly depending on server
lag and singleplayer / multiplayer.
'dtime' is the time from the last execution of the boat entity
'on step' function, so must multiply acceleration and yaw change.

Retune acceleration, turn rate and drift deceleration.

Make reversed turn only happen with significant backwards speed.
mods/boats/init.lua