Collision detection question

Started by
0 comments, last by drstrangeluv 24 years, 5 months ago
I'm stumped as to how to handle the following scenario and, more generally, the issue of what to do when handling possible collisions for multiple objects. Let's say I have an arena with 3 balls in it and they are all moving. Now let's suppose ball A and ball B hit each other. While I know what to do when ball A and ball B hit each other, what I'm stuck on is how to handle what happens if the collision between A and B now results in a collision between A and C or B and C. Should I just check again for collisions after detecting and resolving a single collision, or is there some more efficient method of doing this?
Advertisement
Yes, you should keep testing for collission. Your problem has probaby been solved yet, since it is normal to check collission before drawing anything to the screen, which you probably have done yet

------------------
Dance with me......

This topic is closed to new replies.

Advertisement