A matlab simulation of ball collision.
-
bounce.m
A script of showing a figure with two subplots, one is the balls animation and the other is the velocity statistic. -
bounce_v2.m
An optimized script, basically they do the same work as bounce.m, but it run faster. -
classify.m
A grid based collision detection function for bounce_v2.m.
Sorry, recently I am too busy in iGEM platform...
There is some great work for your reference https://jakevdp.github.io/blog/2012/08/18/matplotlib-animation-tutorial/