OK, so I have a class called Level which inherits from PxSimulationEventCallback and it has all needed methods implemented, yet none of the methods get called.
To assign the class as the callback for the particular scene I do this:
// This inside the Level constructor, where the scene is created. (I removed that part for the sake of simplicity) sceneDesc.flags |= PxSceneFlag::eENABLE_ACTIVETRANSFORMS; mPxScene = mPxPhysics->createScene(sceneDesc); mPxScene->setSimulationEventCallback(this);
Is there anything I’m missing, perhaps I’m adding the flag wrongly ?
EDIT: I also tried calling mPxScene->getActiveTransforms() and that did nothing to change the situation.