lift improvements

master
Alexsandro Percy 2021-08-18 21:37:36 -03:00
parent 0bc85be190
commit ee9b342696
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,6 @@ function trike.physics(self)
self.object:set_velocity(vnew)
end
local accel = self._last_accell
--accel.y = accel.y + mobkit.gravity
self.object:set_acceleration(accel)
--local accel = self._last_accell
--self.object:set_acceleration(accel)
end

View File

@ -469,6 +469,7 @@ function trike.flightstep(self)
if longit_speed > 2 then
new_accel = trike.getLiftAccel(self, velocity, new_accel, longit_speed, roll, curr_pos)
end
self.object:set_acceleration(new_accel)
-- end lift
if newyaw~=yaw or newpitch~=pitch or newroll~=roll then