Skip to content

sjnprjl/cloth-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Cloth Simulation Project ๐ŸŒ

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. ๐Ÿคธโ€โ™‚๏ธ

Live Demo ๐ŸŽฎ

Explore the simulation in action:

Features โญ

  • 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. ๐Ÿ“ฑ๐Ÿ’ป

Technologies Used โš™๏ธ

  • 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. ๐ŸŒ

How It Works ๐Ÿง 

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. ๐ŸŒช๏ธ

How to Use ๐Ÿ› ๏ธ

  1. Interact: Use the mouse or touch controls to click and drag the cloth. ๐Ÿคš
  2. Adjust Parameters: Experiment with different settings to modify the cloth's behavior and see how it responds. โš™๏ธ
  3. Explore the Demo: View the live demo on CodePen or GitHub Pages to see the project in action! ๐Ÿš€

Installation & Setup ๐Ÿง‘โ€๐Ÿ’ป

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

Contribute ๐Ÿค

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. ๐Ÿ“ค

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published