PxShapeFlag
Defined in include/PxShape.h
-
struct PxShapeFlag
Flags which affect the behavior of PxShapes.
See also
Public Types
-
enum Enum
Values:
-
enumerator eSIMULATION_SHAPE
The shape will partake in collision in the physical simulation.
See also
PxSimulationEventCallback.onContact() PxScene.setSimulationEventCallback() PxShape.setFlag(), PxShape.setFlags()
Note
It is illegal to raise the eSIMULATION_SHAPE and eTRIGGER_SHAPE flags. In the event that one of these flags is already raised the sdk will reject any attempt to raise the other. To raise the eSIMULATION_SHAPE first ensure that eTRIGGER_SHAPE is already lowered.
Note
This flag has no effect if simulation is disabled for the corresponding actor (see PxActorFlag::eDISABLE_SIMULATION).
-
enumerator eSCENE_QUERY_SHAPE
The shape will partake in scene queries (ray casts, overlap tests, sweeps, …).
-
enumerator eTRIGGER_SHAPE
The shape is a trigger which can send reports whenever other shapes enter/leave its volume.
See also
PxSimulationEventCallback.onTrigger() PxScene.setSimulationEventCallback() PxShape.setFlag(), PxShape.setFlags()
Note
Triangle meshes and heightfields can not be triggers. Shape creation will fail in these cases.
Note
Shapes marked as triggers do not collide with other objects. If an object should act both as a trigger shape and a collision shape then create a rigid body with two shapes, one being a trigger shape and the other a collision shape. It is illegal to raise the eTRIGGER_SHAPE and eSIMULATION_SHAPE flags on a single PxShape instance. In the event that one of these flags is already raised the sdk will reject any attempt to raise the other. To raise the eTRIGGER_SHAPE flag first ensure that eSIMULATION_SHAPE flag is already lowered.
Note
Trigger shapes will no longer send notification events for interactions with other trigger shapes.
Note
Shapes marked as triggers are allowed to participate in scene queries, provided the eSCENE_QUERY_SHAPE flag is set.
Note
This flag has no effect if simulation is disabled for the corresponding actor (see PxActorFlag::eDISABLE_SIMULATION).
-
enumerator eVISUALIZATION
Enable debug renderer for this shape.
-
enumerator eSIMULATION_SHAPE
-
enum Enum