increase boat speed to 5

master
TenPlus1 2016-04-16 20:07:54 +01:00
parent 7dcfdc3795
commit 045f1b9e67
1 changed files with 4 additions and 4 deletions

View File

@ -210,8 +210,8 @@ function boat.on_step(self, dtime)
return
end
if math.abs(self.v) > 4.5 then
self.v = 4.5 * get_sign(self.v)
if math.abs(self.v) > 5 then
self.v = 5 * get_sign(self.v)
end
local p = self.object:getpos()
@ -240,8 +240,8 @@ function boat.on_step(self, dtime)
local y = self.object:getvelocity().y
if y >= 4.5 then
y = 4.5
if y >= 5 then
y = 5
elseif y < 0 then
new_acce = {x = 0, y = 20, z = 0}
else