Now, if an illegal movement is detected, the entire movement is reset to the old position.
Instead, when checking for collisions with limiting blocks, prevent only the illegal direction.
That is, if a vertical block is found, prevent only velocities in the horizontal direction across the block. Similar to a wall condition in fluids where only one velocity is set to zero.
Now, if an illegal movement is detected, the entire movement is reset to the old position.
Instead, when checking for collisions with limiting blocks, prevent only the illegal direction.
That is, if a vertical block is found, prevent only velocities in the horizontal direction across the block. Similar to a wall condition in fluids where only one velocity is set to zero.