I have implemented a collision and response system based on the famous "Improved Collision detection and Response" paper. However I'm having an issue with objects sliding backwards on slopes. I believe I could circumvent this issue if I understood how to find the angle of the plane of which my object is colliding with. Take the below screenshot as an example of the situation:
I know the following data:
Position of player object (the ellipsoid at the bottom of the ramp)
Vertices of the collision triangle
- Normal of the collision triangle
- Intersection point between player object and collision triangle
- Penetration distance between player object and collision triangle
How can I use this information to determine the angle of the collision triangle?