fix hydro planes

This commit is contained in:
Alexsandro Percy 2023-10-29 20:02:45 -03:00
parent 0aad4701ef
commit 8341312b64

View file

@ -319,7 +319,9 @@ 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
self.object:set_velocity({x=0,y=airutils.gravity*self.dtime,z=0})
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
end
return
end