added line to avoid glitch
This commit is contained in:
parent
338f9b6991
commit
ec8d409380
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user