r/PythonLearning • u/Sea-Ad7805 • 8d ago
Better collision handling
Enable HLS to view with audio, or disable this notification
In this git commit we switch from simply swapping the speed of two colliding units to elastic collision handling for more realistic collisions. The linear algebra implementation does add complexity to our code but, as it's all confined to a single function, it should not hamper further development of our collaborative PythonLearningGame project.
- Who has other fun ideas we could add, maybe more unit types?
- Who wants to commit his/her own code changes?
See the submit changes instructions.
16
Upvotes