From 13ab931e68b2c7fa9abb2ec4a6d60ac60f45dd92 Mon Sep 17 00:00:00 2001 From: Hume2 Date: Tue, 28 Aug 2018 22:06:56 +0200 Subject: Tweaked acceleraction a bit --- init.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index e960d1b..11f9f97 100644 --- a/init.lua +++ b/init.lua @@ -158,9 +158,11 @@ function bike.on_step(self, dtime) end if ctrl.up then - self.v = self.v + 0.3 * agility + self.v = self.v + 0.2 * agility elseif ctrl.down then - self.v = self.v - 1.2 * agility + self.v = self.v - 0.5 * agility + else + self.v = self.v - 0.05 * agility end if ctrl.left then @@ -175,7 +177,6 @@ function bike.on_step(self, dtime) return end local s = get_sign(self.v) - self.v = self.v - 0.004 * s if s ~= get_sign(self.v) then self.object:set_velocity({x = 0, y = 0, z = 0}) self.v = 0 -- cgit v1.2.3