Just Something Else About Circle Collision
Author |
Message |
Dragon20942
![](http://compsci.ca/v3/uploads/user_avatars/17452741294d1f674ad0f2f.jpg)
|
Posted: Sat Feb 26, 2011 11:34 am Post subject: Just Something Else About Circle Collision |
|
|
What is it you are trying to achieve?
Now that I know how to do circle collision, is there a giant physics formula dictating the angles the circles bounce off of each other? I havent learned this in math, but i would like to know the relationships of angle, velocities, spin, etc. have on collision. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
mirhagk
|
Posted: Sat Feb 26, 2011 10:47 pm Post subject: RE:Just Something Else About Circle Collision |
|
|
For the most part it's really just about calculating the normals, and mirroring the velocities on the normals. (for a circle this is that line that connects the two centers of the cicle)
Of course I'm not too sure about collisions, I just normally bounce the angles off in the above way, it may not be 100% accurate although it seems to work. I can't tell you anything about spin, that I am clueless on. |
|
|
|
|
![](images/spacer.gif) |
Insectoid
![](http://compsci.ca/v3/uploads/user_avatars/13760332514cbd0ce972eaa.jpg)
|
Posted: Sat Feb 26, 2011 10:53 pm Post subject: RE:Just Something Else About Circle Collision |
|
|
Adding in spin requires adding friction and stuff, and takes pretty advanced physics. I'd not try it unless you're really comfortable with vectors and stuff.
Otherwise, just calculate the normal. |
|
|
|
|
![](images/spacer.gif) |
|
|