From ffa3b2a937592713dd81a708e4866b23e969021f Mon Sep 17 00:00:00 2001 From: Sumyjkl Date: Sun, 7 Aug 2022 00:17:36 +1000 Subject: [PATCH] Update init.lua --- init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index cc8a9d7..8913d93 100644 --- a/init.lua +++ b/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