Physics: Verlet Integration demo 1

This browser does not have a Java Plug-in.
Get the latest Java Plug-in here.

Click on the applet to draw in the spring snake to the mouse.

This is a basic test of a port of my Flash commercial physics engine. There's some added improvements over Flash in speed and some ideas I borrowed from traer.physics. Overall it's fast, quite stable, and the Line and Point classes I've developed for it have handy lerp() methods and line intersection methods. This is not the whole package obviously. I've worked out pixel based collisions for use in Flash and attractors which aren't in this demo, but this is just here to start documenting this line of work.

References I used for this code:

Flade (Flash physics engine), Tony Pa (Vector tutorials), Traer Physics, Inverse Square Root by Chris Lomont

Source code: test_04 Line Particle Physics Point Spring

Built with Processing