- #1
Dude J McCool
- 4
- 0
This is a little "high school", i know, but I'm trying to design a simple collision detection program and i need a few formulas, but i can't find them anywhere.
Here is the problem. I have two balls of equal size and mass in a frictionless, 2D environment. These balls have known velocities (x,y), radii and mass. The balls collide at a given point. An angle can be determined by drawing a line between the centers of each ball, and determining the angle of that line with respect to the x-axis. Knowing all of these, how can i now go about determining the velocities after the collision? and thus, the angle of deflection?
I'm looking for something like:
Ball1 Vx, Vy After collision
Ball2 Vx, Vy After collision.
Thanks in advance.
-benny
Here is the problem. I have two balls of equal size and mass in a frictionless, 2D environment. These balls have known velocities (x,y), radii and mass. The balls collide at a given point. An angle can be determined by drawing a line between the centers of each ball, and determining the angle of that line with respect to the x-axis. Knowing all of these, how can i now go about determining the velocities after the collision? and thus, the angle of deflection?
I'm looking for something like:
Ball1 Vx, Vy After collision
Ball2 Vx, Vy After collision.
Thanks in advance.
-benny