Enforce max velocity to avoid teleportation situations such as a circle bouncing between two other circles and getting really fast really quickly.
This also helps avoid circles jumping over each other. Our collision system doesn't detect continuous collision.
Fixes
Fixes #99
Commits
[b37f397] Enforce max velocity
Max velocity is proportional to player movement speed. Currnetly 4x
Move physics constants to PhyscisDef.hpp
[7404e5f] Fix bug where target velocity is not updated when velocity is set
Description
Enforce max velocity to avoid teleportation situations such as a circle bouncing between two other circles and getting really fast really quickly. This also helps avoid circles jumping over each other. Our collision system doesn't detect continuous collision.
Fixes
Fixes #99
Commits
[b37f397] Enforce max velocity
[7404e5f] Fix bug where target velocity is not updated when velocity is set