Authors: Jack Robbins and Randall Tarazona
This project is an implementation and exploration of the Position-Based Dynamics approach to simulating dynamic objects in computer graphics. The mathematics and overall design of these programs are based off of this 2006 paper on the subject.
There are 4 separate demonstrations, the code for each being linked below:
- An interactive worm simulation
- An interactive collision demonstration
- A demonstration of a point constraint
- A combination of our worm simulation and point constraint into a rope simulation
- Download the desired *.py files and requirements.txt
- Create a python virtual environment
- Activate your new python virtual environment
- Run
pip -r install requirements.txt
- Run the desired file with the command
python filename.py
- Enjoy the position based dynamics!