Skip to content

KonstantinBelenko/js-cloth-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🧵 js-cloth-simulation

✔ This is a simple js physics simulator for 2D cloth simulations.
✔ It makes use of verlet integration to achive proper physics behaviour.
🏃‍♀️ Open index.html to run simulator in your browser of choice

Controls

[Bottom controll panel]

📊 PLAY / PAUSE - Starts and stops physics simulation
👾 CREATE / CONNECT / MOVE / DESTROY - Switches action for the left mouse button
🔃 LOAD - Load presets for nets of different sizes [rows] [collums] [distance between dots]

🌎 GRAVITY - Gravity modifier from -10 to 10
🏎 FRICTION - Friction modifier from -3 to 3
🏓 BOUNCE - Bounce modifier from -5 to 5DRAW POINTS - Allows to enable / disable points
✅ DRAW STICKS - Allows to enable / disable sticks

[Other]

👆 Left Mouse Button - Main action button 
👆 Right Mouse Button - Click on a point to make it immovable