From ec8d409380409336700f0c28e06a1da3c812be88 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Thu, 6 May 2021 21:46:40 -0300 Subject: [PATCH] added line to avoid glitch --- trike_utilities.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/trike_utilities.lua b/trike_utilities.lua index 09bc14e..d9afab2 100644 --- a/trike_utilities.lua +++ b/trike_utilities.lua @@ -392,6 +392,7 @@ function trike.flightstep(self) local newroll=roll local velocity = self.object:get_velocity() + self.object:set_velocity(velocity) --hack to avoid glitches local hull_direction = mobkit.rot_to_dir(rotation) --minetest.yaw_to_dir(yaw) local nhdir = {x=hull_direction.z,y=0,z=-hull_direction.x} -- lateral unit vector