Jump to content
  • Advertisement
Sign in to follow this  
TyPR124

Circular collision reaction

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

I'm having trouble figuring out how to react to collision between two circles in a 2D environment. I've found the point of collision, the center position of the circles at the time of collision, and the velocities at the time of collision. I'm looking to apply some force to the point of collision to both circles based on their velocities. But for the life of me, I have no idea how to do this or even where to start. I'm guessing some of the things I need to take into account are Velocities Mass Point of collision relative to the center of the circles Whether the force being applied is a 'helping' force or an 'opposing' force ('helping' if the force and the velocity of the circle are in the same general direction, 'opposing' if they are in the opposite directions, which will probably need checked for both X and Y individually) Any help would be appreciated.

Share this post


Link to post
Share on other sites
Advertisement
You're not applying forces, you're applying impulses (instantaneous changes in momentum: infinite forces over infinitesimal times).

There's a bunch of collision handling literature out there that I'm sure some helpful people will post in response. I'll just say that for this simple case, you just need the following equations:

[Total Energy before collision] = [Total Energy after collision]
[Total momentum before collision] = [Total momentum after collision] .

This is enough to solve for the final momenta -- or, equivalently, for the changes in momenta (impulses).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!