• Advertisement


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

stuck on the plane

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