A fabric design and simulation tool, built in three.js starting from the cloth simulation example.
You can test the code at the following links:
collisiondetection branch: A branch implementing collision detection. In progress.
- Download code and unzip (or, if you're familiar with git,
git clone https://github.com/aatishb/drape.git
) - You need to run the code on a local server (Refs: 1, 2). The easiest way to do this is open one of the .js files with the p5 editor and press play.
[Code overview] (https://goo.gl/5M8SwK) – overview of code organization
Stuff to implement: