Welcome to the Cloth Simulation project! This is a real-time, interactive simulation where you can see and interact with realistic cloth physics. Dive into the amazing world of simulations and experience how fabric behaves in real life through computational modeling. ๐คธโโ๏ธ
Explore the simulation in action:
- Realistic Cloth Behavior: Watch as cloth moves and reacts to forces like gravity and wind. ๐ฌ๏ธ
- Interactive: Click and drag to interact with the cloth, and see how it behaves. ๐ฑ๏ธ
- Lightweight: Built with lightweight and efficient JavaScript to provide smooth performance on various devices. ๐ฑ๐ป
- HTML5 & CSS3: For rendering the simulation interface. ๐ฅ๏ธ
- JavaScript: Used to create and simulate the cloth behavior. ๐ป
- WebGL: For rendering 2D cloth on a 3D canvas. ๐
This simulation uses advanced physics algorithms to calculate and simulate the movement and tension in cloth material. The system computes forces like gravity, collisions, and other dynamic changes, giving users a realistic experience. ๐ช๏ธ
- Interact: Use the mouse or touch controls to click and drag the cloth. ๐ค
- Adjust Parameters: Experiment with different settings to modify the cloth's behavior and see how it responds. โ๏ธ
- Explore the Demo: View the live demo on CodePen or GitHub Pages to see the project in action! ๐
Clone the repository or download the project to run the simulation locally:
git clone https://github.com/sjnprjl/cloth-simulation.git
cd cloth-simulation
open index.html in your browser
Feel free to contribute to this project! If you'd like to add features or improve the simulation, simply fork the repo and submit a pull request. ๐ค