fix underired movement

This commit is contained in:
Alexsandro Percy 2023-10-29 18:05:38 -03:00
parent 157ed5de4f
commit 71f74590d2
2 changed files with 2 additions and 6 deletions

View file

@ -98,12 +98,8 @@ function airutils.physics(self)
--self.object:set_velocity(new_velocity)
--new_velocity = vector.subtract(new_velocity,vel)
--fix to stop planes moving by itself when at airports
self.object:set_velocity(vector.add(new_velocity,vel))
else
self.object:add_velocity(new_velocity)
end
self.object:add_velocity(new_velocity)
end

View file

@ -506,7 +506,7 @@ function airutils.logic(self)
else
if stop == true then
self._last_accell = self.object:get_acceleration()
self._last_accell = vector.new() --self.object:get_acceleration()
self.object:set_acceleration({x=0,y=0,z=0})
self.object:set_velocity({x=0,y=0,z=0})
end