Circle Physics

7 posts

Flag Post

Could someone explain simple circle physics to me? i.e.:
1. How they work
2. Basic Physics with them
3. Collision Resolution

 
Flag Post

Circle collision is very different from box collision, since the rotation doesn’t matter. To check if two circles are colliding, you simple measure the distance between them, and compare that to their radii.

Because ball physics are comparable to billiards bouncing off each other, the physics are the same.

 
Flag Post

here’s a thread

 
Flag Post

Basically:

Work out the distance between them, if this is less than the sum of their radii, you evidently have a collision.
Then you need to move them back to when they just touched (dist between = the sum of radii).
Then, using the velocities of the balls:
You draw a line between the centres of the two balls and convert their velocities into components parallel to and perpendicular to the line.
If their have different masses, you need to perform some calculations, but if they are equal in mass, simply exchange the parallel velocities and keep the perpendicular velocities the same.

Elastic collision tutorial

 
Flag Post
Originally posted by BobJanova:

here’s a thread

ErlandHL was trying to create elastic physics, what is the difference?

 
Flag Post
Originally posted by JohnnyBohnny:

ErlandHL was trying to create elastic physics, what is the difference?

Two circles colliding both made of rubber vs. both made of glue.

RTL also wants elastic collision, probably.

 
Flag Post

The maths I go through in that thread allows you to specify how elastic it is.