/js-cloth-simulation

Funny cloth physics in browser

Primary LanguageJavaScriptMIT LicenseMIT

๐Ÿงต 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