removed rotation comparations

This commit is contained in:
Alexsandro Percy 2022-12-13 21:15:11 -03:00
parent 0810fb2382
commit a255a1e69b
1 changed files with 1 additions and 1 deletions

View File

@ -837,7 +837,7 @@ minetest.register_entity("automobiles_delorean:delorean", {
newpitch = newpitch + (velocity.y * math.rad(max_pitch - h_vel_compensation))
end
if newyaw~=yaw or newpitch~=pitch then self.object:set_rotation({x=newpitch,y=newyaw,z=newroll}) end
self.object:set_rotation({x=newpitch,y=newyaw,z=newroll})
--saves last velocity for collision detection (abrupt stop)
self.lastvelocity = self.object:get_velocity()