diff options
author | Hume2 <teratux.mail@gmail.com> | 2018-08-28 22:06:56 +0200 |
---|---|---|
committer | Hume2 <teratux.mail@gmail.com> | 2018-08-28 22:06:56 +0200 |
commit | 13ab931e68b2c7fa9abb2ec4a6d60ac60f45dd92 (patch) | |
tree | 9addf8e185ff5deca7d42ce9f2133a53655d5ce8 | |
parent | d55b6cb0e7b205cf60aaadab35c7e2311b8bb96c (diff) |
Tweaked acceleraction a bit
-rw-r--r-- | init.lua | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |