Defined in include/extensions/PxSimpleFactory.h

PxRigidStatic *PxCloneStatic(PxPhysics &physicsSDK, const PxTransform &transform, const PxRigidActor &actor)

create a static body by copying attributes from another rigid actor

The function clones a PxRigidDynamic or PxRigidStatic as a PxRigidStatic. A uniform scale is applied. The following properties are copied:

  • shapes

  • actor flags

  • owner client and client behavior bits

  • dominance group

The following are not copied and retain their default values:

  • name

  • joints or observers

  • aggregate or scene membership

  • user data


Transforms are not copied with bit-exact accuracy.

  • physicsSDK[in] - the physics SDK used to allocate the rigid static

  • actor[in] the rigid actor from which to take the attributes.

  • transform[in] the transform of the new static.


the newly-created rigid static