Drag a Ball using your mouse Holding down the 1,2, 3 or 4 key to add new balls! Press D over a ball to delete it! Press R to RESET (removes all the balls) I've been reading a web based tutorials by a guy named Randy Gaul (http://tutsplus.com/authors/randy-gaul) on how to implement a Rigid Body Physics Engine... The upshot is... It's complex! *grin*. I have only begun to implement the basics: Supporting circles with basic Impulse resolution and overlapping object correction. No friction, rotation or torque :S And no non-circular bodies! :S
26 Jun 2014 - v1.3 - Implemented correct mass, large bodies now affect smaller bodies far more. Added key '4' for one huge ball :). Added 'D' key to delete the ball under the mouse pointer. 23 Jun 2014 - v1.2 - Added ability to set gravity to 0, and fixed grabbing a ball forcing other objects away glitch! 23 Jun 2014 - v1.1 - Added 3 ball sizes... 23 Jun 2014 - v1.0 - Shared! - Only supports circles and basic impulse resolution.