signalsondisplay

Icon

making life easier since 0x7C2.

Soft body dynamics with Verlet integration

Just some fooling arround with Verlet integration to try and render soft bodies. They’re not perfect, but pretty fun to play arround with.
If you are interested in how this stuff works you should really read this article, it’s really “cool”.
Anyway, all this is, is a graph of vertices connected together with semi rigid constraints.

And now for some soft bodies…
Use the left and right arrow keys to shift the blob left or right, and the up key to shift it… up!
If you hit a wall too hard, you might kill the little blob.

Processing:
Here is a version using processing.

ActionScript 3.0:
These are two slightly different AS3 versions ( the underlying verlet “engines” are a little different ):
semi rigid version
softer blob

Category: Actionscript 3.0, Physics, Processing

Tagged: , ,

3 Responses

  1. [...] 05/18/2009 HexoSearch – The World’s First Search Engine Dedicated for Actionscript Soft body dynamics with Verlet integration – signalsondisplay.com 05/17/2009 Just some fooling arround with Verlet integration to try and [...]

  2. Hi Dominic,
    I just came across this and was wondering if you’d be cool with posting the source…I’m sure I’m not the first to ask…wondering what you’re doing to get the dispersion effect when colliding with boundaries. It’s really awesome dude.
    Cheers.
    Kiyo

  3. Dominic says:

    you can check out the processing source code here
    here or grab the AS3 source code here.

    The code is dirty and most of it is probably not very accurate, I suck at math and physics =)

Leave a Reply