PxTriggerPair Struct Reference

Descriptor for a trigger pair. More...

#include <PxSimulationEventCallback.h>

Collaboration diagram for PxTriggerPair:

Public Member Functions

PX_INLINE PxTriggerPair ()
 

Public Attributes

PxShapetriggerShape
 The shape that has been marked as a trigger. More...
 
PxRigidActortriggerActor
 The actor to which triggerShape is attached. More...
 
PxShapeotherShape
 The shape causing the trigger event. More...
 
PxRigidActorotherActor
 The actor to which otherShape is attached. More...
 
PxPairFlag::Enum status
 Type of trigger event (eNOTIFY_TOUCH_FOUND or eNOTIFY_TOUCH_LOST). eNOTIFY_TOUCH_PERSISTS events are not supported. More...
 
PxTriggerPairFlags flags
 Additional information on the pair (see PxTriggerPairFlag) More...
 

Detailed Description

Descriptor for a trigger pair.

An array of these structs gets passed to the PxSimulationEventCallback::onTrigger() report.

Note
The shape pointers might reference deleted shapes. This will be the case if PxPairFlag::eNOTIFY_TOUCH_LOST events were requested for the pair and one of the involved shapes gets deleted. Check the flags member to see whether that is the case. Do not dereference a pointer to a deleted shape. The pointer to a deleted shape is only provided such that user data structures which might depend on the pointer value can be updated.
See also
PxSimulationEventCallback.onTrigger()

Constructor & Destructor Documentation

◆ PxTriggerPair()

PX_INLINE PxTriggerPair::PxTriggerPair ( )
inline

Member Data Documentation

◆ flags

PxTriggerPairFlags PxTriggerPair::flags

Additional information on the pair (see PxTriggerPairFlag)

◆ otherActor

PxRigidActor* PxTriggerPair::otherActor

The actor to which otherShape is attached.

◆ otherShape

PxShape* PxTriggerPair::otherShape

The shape causing the trigger event.

Deprecated:
(see PxSimulationEventCallback::onTrigger()) If collision between trigger shapes is enabled, then this member might point to a trigger shape as well.

◆ status

PxPairFlag::Enum PxTriggerPair::status

Type of trigger event (eNOTIFY_TOUCH_FOUND or eNOTIFY_TOUCH_LOST). eNOTIFY_TOUCH_PERSISTS events are not supported.

◆ triggerActor

PxRigidActor* PxTriggerPair::triggerActor

The actor to which triggerShape is attached.

◆ triggerShape

PxShape* PxTriggerPair::triggerShape

The shape that has been marked as a trigger.


The documentation for this struct was generated from the following file: