mirror of
https://github.com/APercy/airutils.git
synced 2025-07-16 03:06:38 -04:00
improved climbing reactions
This commit is contained in:
parent
6964b39b04
commit
bd5a2b7c2c
2 changed files with 2 additions and 2 deletions
|
@ -498,7 +498,7 @@ function airutils.logic(self)
|
|||
self._last_accell = new_accel
|
||||
self.object:move_to(curr_pos)
|
||||
--airutils.set_acceleration(self.object, new_accel)
|
||||
local limit = (self._max_speed/self.dtime) * 2
|
||||
local limit = (self._max_speed/self.dtime)
|
||||
local vel_to_add = vector.multiply(new_accel,self.dtime)
|
||||
if new_accel.y > limit then new_accel.y = limit end --it isn't a rocket :/
|
||||
vel_to_add.y = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue