Sign in to follow this  
yogeshpatel4all

Avoid Spheres Penetrating Each Other

Recommended Posts

hi , I have 8 to 10 Spheres in my game . One is Under My control and rest are Automated. What I m doing is , each sphere has it vector .i m passing a delta in each iteration . What i want is , i wanna apply sliding to my sphere if it is collided with rest and if any other sphere is collided with other then they should not penetrate.

Share this post


Link to post
Share on other sites
Have you read .. Pool Hall Lessons: Fast, Accurate Collision Detection between Circles or Spheres by Joe Van Den Heuvel and Miles Jackson?

For multiple colliders, just check for the earliest collisions. You could probably get away with not even doing that if you have a routine that separates the spheres when they intersect.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this