It actually kinda works!

This commit is contained in:
Dustin 2025-05-31 08:41:17 -07:00
parent 327e02d00b
commit 5197b3a608

View File

@ -169,7 +169,11 @@ func calculate_velocity(_delta :float,
_h_impulse_placement_tracking = IMPULSE_PLACEMENT.LEFT_SIDE _h_impulse_placement_tracking = IMPULSE_PLACEMENT.LEFT_SIDE
else: else:
_h_impulse_placement_tracking = IMPULSE_PLACEMENT.RIGHT_SIDE _h_impulse_placement_tracking = IMPULSE_PLACEMENT.RIGHT_SIDE
calc_inertia.x += h_speed.x 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 ## F this, didn't work well
# if impulse_inertia != calc_inertia.x: ## We have an impulse to apply # if impulse_inertia != calc_inertia.x: ## We have an impulse to apply