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 a max velocity #99

Closed sourencho closed 4 years ago

sourencho commented 5 years ago

Since collision now applies an elastic collision impulse x 3, energy can be created from nothing (sorry Newton). We should create a max velocity to avoid things getting out of hands e.g. a group bouncing between two other groups and reaching extremely high speeds.

Not to mention circles jumping over each other in one time step (our collision does't handle this).