added line to avoid glitch

This commit is contained in:
Alexsandro Percy 2021-05-06 21:46:40 -03:00
parent 338f9b6991
commit ec8d409380

View File

@ -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