I'm setting up a box2d body, using some old code for reference, in my old code I have right at the end of setting up the body, this line
body->SetUserData(this);
and if I look at the box2d source code, I can find this function
inline void b2Body::SetUserData(void* data)
{
m_userData = data;
}
however when I try set this user data in my new project (using possibly a more up-to-date version of box2d), the function just does not exist.
Has the function been deprecated? Or have I somehow managed to remove a function that should be there?