Curtain
Description
Fabric simulation in Processing using Verlet Integration
What to do
Left click to move the curtain around.
Right click to tear the curtain.
‘G’ to toggle gravity.
‘R’ to reset the curtain
Source
Curtain @ OpenProcessing
Curtain @ Hawkee
Links
How to build a fabric simulator
How to improve your fabric simulator
Changes to Curtain
Very cool, Blue. I’ve made a few cloth-like verlet sims, myself, but I never made mine so they can be torn. I really think that the ability to tear the sheet adds a whole lot. I’m having a little bit of trouble understanding what it is that causes my mouse to tear the fabric, though. Is it just the speed of the mouse?
It’s pretty rudimentary. If two pointmasses are pushed apart far enough, then they rip. It’s not consistent across different timestep sizes, but it works.