It actually kinda works!
This commit is contained in:
parent
327e02d00b
commit
5197b3a608
|
|
@ -169,7 +169,11 @@ func calculate_velocity(_delta :float,
|
|||
_h_impulse_placement_tracking = IMPULSE_PLACEMENT.LEFT_SIDE
|
||||
else:
|
||||
_h_impulse_placement_tracking = IMPULSE_PLACEMENT.RIGHT_SIDE
|
||||
if sign(h_speed.x) == sign(h_speed.y):
|
||||
calc_inertia.x += h_speed.x
|
||||
else:
|
||||
##TODO: Maybe this should be something else
|
||||
calc_inertia.x = 0
|
||||
|
||||
## F this, didn't work well
|
||||
# if impulse_inertia != calc_inertia.x: ## We have an impulse to apply
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user