Fix forwards/backwars tilt in all directions

This commit is contained in:
teknomunk 2024-03-13 13:07:58 +00:00
parent c42302cfd2
commit 390419e67c
1 changed files with 3 additions and 0 deletions

View File

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