Simple Hair and Cloth Simulation made with Unity.
Project Objectives:
- Understand how physical phenomena are modeled in games
- Understand several methods of solving ordinary differential equations
- Learn the basic spring model implementation
- Simple interaction: the player can adjust hair weight, damping factor, length and other parameters through UI
- Simple interaction: the player can use the ball to collide with the cloth
- Implementing dynamic effects using the Verlet integration method.
- Enforcing spring constraints on the hair strands.
- Introducing collision constraints between the hair strands and the spherical head model.
- Incorporating simple user interactions.
- Utilizing a UI to adjust parameters such as hair weight, damping coefficient, and length.
- Exploring optional enhancements, such as advanced rendering effects.
- Utilizing a grid-based mass-spring system for cloth modeling.
- Calculating external forces acting on each cloth vertex, focusing on gravitational forces.
- Computing structural, shear, and flexion forces within the cloth through spring constraints between different vertices.
- Implementing dynamic cloth effects using the Semi-implicit Euler (Symplectic Euler) method.
- Exploring optional enhancements, such as cloth-sphere collisions.
- Implementing cloth simulation using the implicit Euler method.
Download and unzip the Advanced Physics_Build.zip, then open the Advanced Physics.exe to launch the program.
- ←/→/↑/↓/J/K: Move the ball
- ESC: Quit
The use of this project is subject to the following constraints:
-
For Academic Use Only: This project is intended solely for academic assignments and research purposes at Shanghai Jiao Tong University. Its use for commercial purposes or any unauthorized use is strictly prohibited.
-
No Redistribution of University Information: The project contains information specific to Shanghai Jiao Tong University, and without permission, it may not be redistributed in any form.
-
All Rights Reserved: The author reserves all rights to this project and its related content.