fix dtime compensation

This commit is contained in:
Alexsandro Percy 2023-12-23 17:21:07 -03:00
parent e19e4a46c2
commit 04e19cb5dc

View File

@ -66,6 +66,7 @@ function ap_airship.physics(self)
self.water_drag = 0.1
self.object:move_to(self.object:get_pos())
local time_correction = (self.dtime/ap_airship.ideal_step)
if time_correction < 1 then time_correction = 1 end
local y_accel = self._baloon_buoyancy*time_correction
--minetest.chat_send_all(y_accel)
local max_y_acell = 0.3