Jump to content
  • Advertisement


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


stuck on the plane

This topic is 5383 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

My god am i aving trouble with collision detection!!! Im trying to get the player to slide nicely along any polygons they hit, but i seem to get stuck on the plane and cant get off! If i add a buffer between the plane and the player, it ''bounces'' instead of sliding.... here is the code i am using... if (collisionType == COLLISION_WALL) { Z = (A*X + B*Y + D) / (-C) - buffer; X = (B*Y + C*(Z + buffer) + D) / (-A); } where ABC = the planes normal xyz. and XYZ = the position of the players feet is this even right??

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!