Circle Physics

Subscribe to Circle Physics 7 posts

avatar for RTL_Shadow RTL_Shadow 1024 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

 
avatar for JohnnyBohnny JohnnyBohnny 113 posts
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.

 
avatar for BobJanova BobJanova 860 posts
Flag Post

here’s a thread

 
avatar for feartehstickman feartehstickman 521 posts
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

 
avatar for JohnnyBohnny JohnnyBohnny 113 posts
Flag Post
Originally posted by BobJanova:

here’s a thread

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

 
avatar for NineFiveThree NineFiveThree 1370 posts
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.

 
avatar for BobJanova BobJanova 860 posts
Flag Post

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