mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 08:01:22 +00:00
fix hydro planes
This commit is contained in:
parent
8341312b64
commit
f0c72e6e74
1 changed files with 1 additions and 1 deletions
|
@ -320,7 +320,7 @@ function airutils.logic(self)
|
|||
|
||||
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
|
||||
if self._ground_friction then
|
||||
if self._ground_friction <= 0.97 then self.object:set_velocity({x=0,y=airutils.gravity*self.dtime,z=0}) end
|
||||
if self._ground_friction > 0.97 then self.object:set_velocity({x=0,y=airutils.gravity*self.dtime,z=0}) end
|
||||
end
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue