Sometimes you only want to operate on a const body ptr in order to check the userdata. Currently it's not possible to maintain const correctness in these situations.
const b2BodyUserData& GetUserData() const;
The same is true for all other GetUserData() methods for fixtures and so on.
Sometimes you only want to operate on a const body ptr in order to check the userdata. Currently it's not possible to maintain const correctness in these situations.
const b2BodyUserData& GetUserData() const;
The same is true for all other GetUserData() methods for fixtures and so on.