Elastic Collision

Hello everyone!

I am currently studying game development at Mediacollege Amsterdam.
Before summer break while math classes did we made some elastic collision with two balls in AS3.

While my summer break i began starting to work more with java and tried to remake the elastic collision in java
but now with an array of balls with mass instead of 2 balls.

And i made it! :smiley:

Here is the result:

http://justinbieshaar.com/images/elastic.gif

How to:
Click and hold to create a bigger ball.

I did not use libary’s

Download: Try it yourself!