Authors: Jack Robbins and Randall Tarazona
This program uses a force based avoidance algorithm to simulate a crowd. In this implementation, every agent is checked against every other agent, leading to O(n2) time complexity. This will be improved apon in shash.py.
This program is an exact copy of favoid.py, with a simple terminal based FPS counter added in. This FPS counter will allow us to compare efficiency between our two implementations of crowd based avoidance.
This program implements a force based avoidance algorithm on top of a spatial hash to greatly improve efficiency and fps from favoid.py. This program also includes the same FPS counter as fps.py, so efficiency can be compared.
- 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 crowd simulations!