mirror of
https://github.com/APercy/ap_airship.git
synced 2025-03-15 07:51:20 +00:00
fix dtime compensation
This commit is contained in:
parent
e19e4a46c2
commit
04e19cb5dc
1 changed files with 1 additions and 0 deletions
|
@ -66,6 +66,7 @@ function ap_airship.physics(self)
|
||||||
self.water_drag = 0.1
|
self.water_drag = 0.1
|
||||||
self.object:move_to(self.object:get_pos())
|
self.object:move_to(self.object:get_pos())
|
||||||
local time_correction = (self.dtime/ap_airship.ideal_step)
|
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
|
local y_accel = self._baloon_buoyancy*time_correction
|
||||||
--minetest.chat_send_all(y_accel)
|
--minetest.chat_send_all(y_accel)
|
||||||
local max_y_acell = 0.3
|
local max_y_acell = 0.3
|
||||||
|
|
Loading…
Add table
Reference in a new issue