sourencho / ungroup_game

A multiplayer game about temporary alliances written with a custom engine in C++ and SFML
14 stars 1 forks source link

Enforce max velocity #134

Closed sourencho closed 4 years ago

sourencho commented 4 years ago

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