Hi,
Why does the following give me an access violation in memory?
int count = m_world->Query(aabb, shapes, k_maxCount);
b2Body* aBody = shapes[0]->GetBody();
Object* aObject = (Object*)aBody->m_userData;
If it is wrong....then what is the correct way of accessing the body?
Why does the following give me an access violation in memory?
int count = m_world->Query(aabb, shapes, k_maxCount);
b2Body* aBody = shapes[0]->GetBody();
Object* aObject = (Object*)aBody->m_userData;
If it is wrong....then what is the correct way of accessing the body?