mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 08:01:22 +00:00
fix underired movement
This commit is contained in:
parent
157ed5de4f
commit
71f74590d2
2 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue