I am pretty confused about what routine to take when trying to create a 2d scroller game.
I want to use a rectangle as bounding box and i want to have all kinds of angles and rotating objects, elevetors etc.
right now i like "the move -> get penetration delta ->push back" concept, this is the one i get to be stable without jittering. And with recursive checks this works great in small corners etc. Also other moving objects "pushes" the player for "free"
If i try to sweep and get the TOI and change the velocity to sliding for example, this always gives me jitters and jerkiness.
The same with the oldPos vs newPos when saving position and then check for collisions and if found, then revert back to the safe position. This i also get jitters when implement. Should i still be doing the "push-back" even if i calculate the TOI?
What is the "standard" way of doing when creating a FPS in 3D and in my example 2D scroller.
The problem with the push right now is that i get sliding from the gravity vector even though my velocity is set to zero, this is due to the pushback vector. So this is why i want to try something new, otherwise i really like that technique.
And if you were to do a 2D scroller with different angles for floors, would you use AABB and then line intersection?
I am checking the minkowskis sum, but i think there might be simpler stuff for the scroller.
I am stuck with prototyping right now and cant get progress, so any input is helpful =)