mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-01-09 16:49:35 +01:00
Fix forwards/backwars tilt in all directions
This commit is contained in:
parent
390ac27acf
commit
f7dcb8f10f
1 changed files with 3 additions and 0 deletions
|
@ -111,6 +111,9 @@ local function update_cart_orientation(self,staticdata)
|
||||||
if ( staticdata.rot_adjust or 0 ) < 0.01 then
|
if ( staticdata.rot_adjust or 0 ) < 0.01 then
|
||||||
rot.x = -rot.x
|
rot.x = -rot.x
|
||||||
end
|
end
|
||||||
|
if dir.z ~= 0 then
|
||||||
|
rot.x = -rot.x
|
||||||
|
end
|
||||||
|
|
||||||
self.object:set_rotation(rot)
|
self.object:set_rotation(rot)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue