PxCreateStatic#

Defined in include/extensions/PxSimpleFactory.h

PxRigidStatic *PxCreateStatic(
PxPhysics &sdk,
const PxTransform &transform,
const PxGeometry &geometry,
PxMaterial &material,
const PxTransform &shapeOffset = PxTransform(PxIdentity),
)#

simple method to create a PxRigidStatic actor with a single PxShape.

See also

PxRigidStatic

Parameters:
  • sdk – [in] the PxPhysics object

  • transform – [in] the global pose of the new object

  • geometry – [in] the geometry of the new object’s shape

  • material – [in] the material for the new object’s shape

  • shapeOffset – [in] an optional offset for the new shape, defaults to identity

Returns:

a new static actor, or NULL if it could not be constructed