Tuesday, February 9, 2016

Elastic Collisions

Here are two links that will help you understand elastic collisions.
Link1      Link2
I am trying to get my program work properly but the balls refuse to behave well. Some of them pass through each other and some collide erratically.

Here is a gif of the snapshot:


This is a TurboC++ project working in Graphics.h library.
You can show this as your project with modifications to get the math right.
Here is the CPP file.

No comments:

Post a Comment