I’ve tried both methods: raycasting from the old position to the current one, and vice versa. However, I didn’t notice any difference, even at normal speed, where there is no collision issue.
I want to add the ability to customize speed to make the game more fun.