PxCloneShape

Defined in include/extensions/PxSimpleFactory.h

PxShape *PxCloneShape(PxPhysics &physicsSDK, const PxShape &shape, bool isExclusive)

create a shape by copying attributes from another shape

The function clones a PxShape. The following properties are copied:

  • geometry

  • flags

  • materials

  • actor-local pose

  • contact offset

  • rest offset

  • simulation filter data

  • query filter data

  • torsional patch radius

  • minimum torsional patch radius

The following are not copied and retain their default values:

  • name

  • user data

Parameters
  • physicsSDK[in] - the physics SDK used to allocate the shape

  • shape[in] the shape from which to take the attributes.

  • isExclusive[in] whether the new shape should be an exclusive or shared shape.

Returns

the newly-created rigid static