mirror of
https://codeberg.org/SumianVoice/sum_airship.git
synced 2025-03-15 04:11:23 +00:00
Update init.lua
This commit is contained in:
parent
28735108ce
commit
ffa3b2a937
1 changed files with 3 additions and 1 deletions
4
init.lua
4
init.lua
|
@ -383,7 +383,9 @@ function boat.on_step(self, dtime, moveresult)
|
|||
end
|
||||
|
||||
local v = self.object:get_velocity()
|
||||
v = vector.multiply(v, 0.98)
|
||||
v.x = v.x * 0.97
|
||||
v.z = v.z * 0.97
|
||||
v.y = v.y * 0.97
|
||||
self.object:set_velocity(v)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue