Sorry for the simple question but how do I set the world position of a PxRigidBody that has previously been created.
All the example I look at set the position when the object is created but I would like to set a new position to click objects in my scene.
I have tried the following but the objects remain at their original position.
physx::PxVec3 pxVec; pxVec.x = position->x; pxVec.y = position->y; pxVec.z = position->z; physx::PxTransform positionTrans; positionTrans.createIdentity(); positionTrans.transform( pxVec ); _pRigidBody->setGlobalPose( positionTrans );
Thanks in advanced