From 39ef71c598e406297223b04578957c912c9aa03b Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Tue, 16 Apr 2024 17:01:43 +0200 Subject: [PATCH] more sensitive keyboard control --- init.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/init.lua b/init.lua index 6689a3b..bf89768 100644 --- a/init.lua +++ b/init.lua @@ -416,26 +416,26 @@ local on_step = function(self, dtime, moveresult) if not pro then -- inverted controls if keys.up then - rot.x = rot.x + dtime + rot.x = rot.x + dtime * 0.25 elseif keys.down then - rot.x = rot.x - dtime + rot.x = rot.x - dtime * 0.25 end else -- pro pilot controls: forward pushes -- nose down, back pulls up if keys.up then - rot.x = rot.x - dtime + rot.x = rot.x - dtime * 0.25 elseif keys.down then - rot.x = rot.x + dtime + rot.x = rot.x + dtime * 0.25 end end end -- ignore if both directions are pressed if keys.left or keys.right then if keys.left then - rot.z = rot.z - 2 * dtime + rot.z = rot.z - 2 * dtime * 0.5 elseif keys.right then - rot.z = rot.z + 2 * dtime + rot.z = rot.z + 2 * dtime * 0.5 end end