[DISREGARD] I was doing something wrong so the question is invalid.
Hi guys, I'm in the process of adding sliding to my collision response and in the articles I've read they don't mention something.
Let's say I'm doing a sphere-wall collision, the sphere (player) moves due north and the wall's normal points due south, when the sphere hits there will be no sliding vector since the velocity and normal are complete opposites, that's fine if the guy stops moving, but if he keeps heading directly into the wall I will keep getting collisions at time zero and nothing else will happen. Even if I detect it it will cause problems if the guy keeps heading almost directly into the wall, the sliding vector will be so small that I'll keep getting collisions at such an early time resulting in the same effect.
I'm basically finding the first collision, moving all the objects, then looping until the time in the frame runs out.
Maybe I have it all wrong ?
Edited by Endemoniada, 29 March 2013 - 01:19 PM.