This topic is now archived and is closed to further replies.


Bouncing of surfaces...

Recommended Posts

ok im trying to write a basic first person engine, i have the collision detection sorted thanks to coldet, and so now im doing collision responce. what i do is load the level, then calculate the normals for all the faces in the level, then normalize the normals. if the player has a collision with the level, i get the normal of the triangle that the player has collided with then i get a normalized vector representing the players movement. i then get the magnitude of this vector, and do the following: (pseudo) playerx += facenormalx*magnitude playery += facenormaly*magnitude playerz += facenormalz*magnitude this works perfectly for flat surfaces, but when i try to walk up ramps my player slowly sinks through them help!

Share this post

Link to post
Share on other sites