redhat-gamedev / srt-game-server

Apache License 2.0
5 stars 2 forks source link

Upgrade from older Box2D 2.3 to latest 2.4.z+ #15

Closed RoddieKieley closed 3 years ago

RoddieKieley commented 3 years ago

The version of Box2D currently in use is v2.3.1 which was released in 2014. For some time there were no further updates, however recently v2.4.0 and v2.4.1 were released with some notable changes as the now included CHANGELOG indicates.

As well the older version is no longer the current version on either of Fedora or macOS necessitating our own copr build for Fedora in particular.

It would be good to get the updates as well as resolve the need for our own build.

Jared-Sprague commented 3 years ago

Are their breaking changes?

RoddieKieley commented 3 years ago

The user data in the b2Body went from being a void* to being a member 'pointer' of type uintptr_t. I had thought there may be more changes but from a compilation point of view that appears to be the key difference at this point. When I updated and tested the scale seemed to be off compared to the previous time I ran the client against the server so need to investigate to see if it's related to the upgrade or not.