[b][color=blue]Due to so many requests from the users, source code for this applet is distributed with the ZIP files you will receive if you click [u]get file for offline use[/u] button. Please do not ask me to send you the source code again![/color][/b]

You are welcomed to check out [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=120.0]another Collision 2D[/url] created with EJS.

Please check out [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=120.0]latest 2D collision created with EJS[/url]

Let's consider collisions in two dimension:
Press Start to begin the animation.
Two circular objects will move with pre-defined velocity (yellow arrow).
Click left mouse button to suspend the animation. Now, you can
Click near the tip of the velocity vector and drag the mouse button
left/right to change its value (the initial velocity of that object).
Click near the circular boundary and drag the mouse button to change its radius.

Right Click near the boundary of the circle to change it's size (also change it's mass, at the same time).

Click near the center of the circle and drag the mouse to change its location.

Click the mouse button again to resume the animation. When the two objects collide, the animation will be suspend.
Press the mouse button ( Do not release it) to see the velocity vectors just after the collision.

Press Reset button to reset parameters to default values.
eta is the coefficient of restitution eat Vf/Vi Vf=relative velocity just after collision
Vi=relative velocity just before collision
for elastic collision eta=1.
for perfectly inelastic collision eta=0.

You can select different frame of reference to view the relative motion of all the objects.
lab is a laboratory inertial frame. m1, m2 and CM are frame of reference with respect to
left circular object m1, right circular object m2 and center of mass for m1 and m2.

View collision in 1 dimension.

At the moment when they collide, the force between the two circle objects is along the line which connect the center of the two objects.

Now we have 1-D collision problem:
two object move in the direction along the line connect between their center, with velocitys along this directions. (Red vectors)

The vector perpendicular to the above components (green vectors) will not changed after collision.
(If there is no friction force between the two objects)

Please check out [url=http://www.myphysicslab.com/collision.html]Rigid Body Collisions[/url] for 2D collision between rectangle shape objects.