mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-08-21 09:27:25 +02:00
Fix forwards/backwars tilt in all directions
This commit is contained in:
parent
fd6f4ee80e
commit
1618693726
@ -111,6 +111,9 @@ local function update_cart_orientation(self,staticdata)
|
||||
if ( staticdata.rot_adjust or 0 ) < 0.01 then
|
||||
rot.x = -rot.x
|
||||
end
|
||||
if dir.z ~= 0 then
|
||||
rot.x = -rot.x
|
||||
end
|
||||
|
||||
self.object:set_rotation(rot)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user