lift improvements
parent
0bc85be190
commit
ee9b342696
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue