Skip to main content

verletCloth01

Simple verlet based 'cloth' simulation. Grab and move and pin particles to modify the sim.


Eric Pavey
(akeric)

Simple verlet based 'cloth' simulation.

  • Grab and move and pin particles to modify the sim.
  • See details on the code's home page.
  • Expects a 3-button mouse.
  • You can LMB-click on any particle to make the particle stick to the mouse.
  • LMB-click again, and the particle will stick in space.
  • If you RMB on a stuck particle, it will unstick.

If you grab just the source, you'll also need a fixed-up version of the Pygame vec2d lib, which you can download from my site here:

Based on the 2001 Siggraph paper:

Changes

Links

Home Page
http://www.akeric.com/blog/?page_id=1123

Releases

verletCloth01 1.0 — 4 Jul, 2010

Pygame.org account Comments

  • Berenguer 2021-04-28 16:55

    The demo is great nice job