java.lang.Object
physx.NativeObject
physx.physics.PxTriggerPair
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxTriggerPairarrayGet(long baseAddress, int index) voiddestroy()getFlags()Additional information on the pair (see #PxTriggerPairFlag)The actor to which otherShape is attachedDeprecated.Type of trigger event (eNOTIFY_TOUCH_FOUND or eNOTIFY_TOUCH_LOST).The actor to which triggerShape is attachedThe shape that has been marked as a trigger.voidsetFlags(PxTriggerPairFlags value) Additional information on the pair (see #PxTriggerPairFlag)voidsetOtherActor(PxActor value) The actor to which otherShape is attachedvoidsetOtherShape(PxShape value) Deprecated.voidsetStatus(PxPairFlagEnum value) Type of trigger event (eNOTIFY_TOUCH_FOUND or eNOTIFY_TOUCH_LOST).voidsetTriggerActor(PxActor value) The actor to which triggerShape is attachedvoidsetTriggerShape(PxShape value) The shape that has been marked as a trigger.static PxTriggerPairwrapPointer(long address) Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
Field Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
PxTriggerPair
protected PxTriggerPair() -
PxTriggerPair
protected PxTriggerPair(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getTriggerShape
The shape that has been marked as a trigger. -
setTriggerShape
The shape that has been marked as a trigger. -
getTriggerActor
The actor to which triggerShape is attached -
setTriggerActor
The actor to which triggerShape is attached -
getOtherShape
Deprecated.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. -
setOtherShape
Deprecated.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. -
getOtherActor
The actor to which otherShape is attached -
setOtherActor
The actor to which otherShape is attached -
getStatus
Type of trigger event (eNOTIFY_TOUCH_FOUND or eNOTIFY_TOUCH_LOST). eNOTIFY_TOUCH_PERSISTS events are not supported. -
setStatus
Type of trigger event (eNOTIFY_TOUCH_FOUND or eNOTIFY_TOUCH_LOST). eNOTIFY_TOUCH_PERSISTS events are not supported. -
getFlags
Additional information on the pair (see #PxTriggerPairFlag) -
setFlags
Additional information on the pair (see #PxTriggerPairFlag)
-