sourencho / ungroup_game

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

Sometimes group bounces off mine without expected collision response #117

Closed sourencho closed 4 years ago

sourencho commented 4 years ago

Notice how the group bounces off once without the collision animation (sparks) and without changing velocity direction (arrow)

collision_bug

sourencho commented 4 years ago

I suspect this has to do with network updates.

If you shut off the server while a client is running and test the collision with the client only running with interpolation, this doesn't seem to happen.

Keep in mind that collision events, or any events for that matter, aren't sent over the network.

sourencho commented 4 years ago

Given interpolation (#213) this problem now manifests in a different form: #214