PxRigidDynamic* aPlane = mScene->getPhysics().createRigidDynamic(PxTransform(PxVec3(0, -20, 0), PxQuat(Ogre::Math::PI/2, PxVec3(0, 0, 1))));
PxShape* shape = aPlane->createShape(PxPlaneGeometry(), *mCore->getPhysicsSystem()->getDefaultPxMaterial());
aPlane->setRigidDynamicFlag(PxRigidDynamicFlag::eKINEMATIC, true);
mScene->addActor(*aPlane);
The above code creates a proper plane, but the collision doesn’t work. I’m not sure what’s wrong.
Continuing from here, I’m creating a new thread, because this is a different problem.