How could I fix the fact that when going diagonally then releasing side (or forward) inputs to go into one direction, it still sort of slides along the diagonal direction?
velocity.x = move_toward(velocity.x, direction.x * SPEED, ACCEL*delta*absf(direction.x))
velocity.z = move_toward(velocity.z, direction.z * SPEED, ACCEL*delta*absf(direction.z))
I know that the bug happens because of absf(direction.#), but it is crucial for another bug/issue.
This is "Diagonal bug" by yes yes on Vimeo, the home for high quality videos and the people who love them.