Circle Reaction

3 posts

Flag Post

Revisiting circles again- I’m perfect with the collisions, easy to check. But how do I resolve them in an easy way? (i.e. them bouncing off each other.)

 
Flag Post

Here is a nice link: http://www.emanueleferonato.com/2008/06/07/managing-multiple-balls-collisions-with-flash-as3-version/

 
Flag Post

That tutorial is okay… it doesn’t really explain anything though, so that doesn’t help very much if your trying to understand the concepts behind it. But if you use that tutorial make sure you check if the distSquared < radiiSquared of the two balls, then take the square root of your distance once you know there’s a collision for added performance. And i believe several others have already gone over this topic quite thoroughly in other threads.