From 04e19cb5dc68320f03ba312dc0c74336153615b5 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Sat, 23 Dec 2023 17:21:07 -0300 Subject: [PATCH] fix dtime compensation --- custom_physics.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_physics.lua b/custom_physics.lua index 0e6d867..6a9034a 100755 --- a/custom_physics.lua +++ b/custom_physics.lua @@ -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