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
471242cc3c
commit
0aad4701ef
1 changed files with 2 additions and 1 deletions
|
@ -318,7 +318,8 @@ function airutils.logic(self)
|
|||
end
|
||||
|
||||
|
||||
if longit_speed == 0 and is_flying == false and is_attached == false and self._engine_running == false then
|
||||
if (math.abs(velocity.x) < 0.1 and math.abs(velocity.z) < 0.1) and is_flying == false and is_attached == false and self._engine_running == false then
|
||||
self.object:set_velocity({x=0,y=airutils.gravity*self.dtime,z=0})
|
||||
return
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue