Skip to content

ConstantineB6/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 5

βœ… DRAW 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 

About

Funny cloth physics in browser

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published