Jump to content
  • Advertisement

Archived

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

Gammastrahler

Collision Detection Again

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

Hi, i have my collision detection system for an indoor 3d shooter almost running. But some problems still remain: If i add friction, i get some problems like jittering, or i am able to climb up walls. also, sometimes i get stuck on a wall which i pass by side... very annoying and curious.... how can i avoid this? currently, i calculaty my friction like this: resultVector = offsetVector * friction, where friction is a scalar. if anone has some knowledge on this and could help me throigh this i would be very happy! thanks Gammastrahler

Share this post


Link to post
Share on other sites
Advertisement
what is offsetVector ?

I''d add friction like vFriction = -Normalize(vVelocity) * mass * frictionConstant

Share this post


Link to post
Share on other sites
Hi,

offset is : collisionPlane.normal * (1.0f - velocity);

1.0 is for unit sphere, since i scale my world by 1 / radiusvector, to support ellipsoids.

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!