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

Bouncing of surfaces...

This topic is 6030 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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