PxCreateDynamic#
Defined in include/extensions/PxSimpleFactory.h
- PxRigidDynamic *PxCreateDynamic(
- PxPhysics &sdk,
- const PxTransform &transform,
- PxShape &shape,
- PxReal density,
simple method to create a PxRigidDynamic actor with a single PxShape.
See also
- Parameters:
sdk – [in] the PxPhysics object
transform – [in] the transform of the new object
shape – [in] the shape of the new object
density – [in] the density of the new object. Must be greater than zero.
- Returns:
a new dynamic actor with the PxRigidBodyFlag, or NULL if it could not be constructed