Currently the jump state is meant to handle all upwards velocity (while neither dashing nor climbing). However, the ground state has no check for the direction of velocity. Additionally, adding one there would be slow.
Proposed solution: the Y-Collision check already does a check for upward vs. downward motion. Upward is a relatively rare case, and can have an additional state-check.
Currently the jump state is meant to handle all upwards velocity (while neither dashing nor climbing). However, the ground state has no check for the direction of velocity. Additionally, adding one there would be slow.
Proposed solution: the Y-Collision check already does a check for upward vs. downward motion. Upward is a relatively rare case, and can have an additional state-check.