Package physx.physics

Class PxTriggerPair

java.lang.Object
physx.NativeObject
physx.physics.PxTriggerPair

public class PxTriggerPair extends NativeObject
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.

  • 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

      public static PxTriggerPair wrapPointer(long address)
    • arrayGet

      public static PxTriggerPair arrayGet(long baseAddress, int index)
    • destroy

      public void destroy()
    • getTriggerShape

      public PxShape getTriggerShape()
      The shape that has been marked as a trigger.
    • setTriggerShape

      public void setTriggerShape(PxShape value)
      The shape that has been marked as a trigger.
    • getTriggerActor

      public PxActor getTriggerActor()
      The actor to which triggerShape is attached
    • setTriggerActor

      public void setTriggerActor(PxActor value)
      The actor to which triggerShape is attached
    • getOtherShape

      @Deprecated public PxShape 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 public void setOtherShape(PxShape value)
      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

      public PxActor getOtherActor()
      The actor to which otherShape is attached
    • setOtherActor

      public void setOtherActor(PxActor value)
      The actor to which otherShape is attached
    • getStatus

      public PxPairFlagEnum getStatus()
      Type of trigger event (eNOTIFY_TOUCH_FOUND or eNOTIFY_TOUCH_LOST). eNOTIFY_TOUCH_PERSISTS events are not supported.
    • setStatus

      public void setStatus(PxPairFlagEnum value)
      Type of trigger event (eNOTIFY_TOUCH_FOUND or eNOTIFY_TOUCH_LOST). eNOTIFY_TOUCH_PERSISTS events are not supported.
    • getFlags

      public PxTriggerPairFlags getFlags()
      Additional information on the pair (see #PxTriggerPairFlag)
    • setFlags

      public void setFlags(PxTriggerPairFlags value)
      Additional information on the pair (see #PxTriggerPairFlag)