Package physx.physics

Enum Class PxContactPairFlagEnum

java.lang.Object
java.lang.Enum<PxContactPairFlagEnum>
physx.physics.PxContactPairFlagEnum
All Implemented Interfaces:
Serializable, Comparable<PxContactPairFlagEnum>, Constable

public enum PxContactPairFlagEnum extends Enum<PxContactPairFlagEnum>
Collection of flags providing information on contact report pairs.

See also: PxContactPair

  • Enum Constant Details

    • eREMOVED_SHAPE_0

      public static final PxContactPairFlagEnum eREMOVED_SHAPE_0
      The shape with index 0 has been removed from the actor/scene.
    • eREMOVED_SHAPE_1

      public static final PxContactPairFlagEnum eREMOVED_SHAPE_1
      The shape with index 1 has been removed from the actor/scene.
    • eACTOR_PAIR_HAS_FIRST_TOUCH

      public static final PxContactPairFlagEnum eACTOR_PAIR_HAS_FIRST_TOUCH
      First actor pair contact.

      The provided shape pair marks the first contact between the two actors, no other shape pair has been touching prior to the current simulation frame.

      Note:: This info is only available if #PxPairFlag::eNOTIFY_TOUCH_FOUND has been declared for the pair.

    • eACTOR_PAIR_LOST_TOUCH

      public static final PxContactPairFlagEnum eACTOR_PAIR_LOST_TOUCH
      All contact between the actor pair was lost.

      All contact between the two actors has been lost, no shape pairs remain touching after the current simulation frame.

    • eINTERNAL_HAS_IMPULSES

      public static final PxContactPairFlagEnum eINTERNAL_HAS_IMPULSES
      Internal flag, used by #PxContactPair.extractContacts()

      The applied contact impulses are provided for every contact point. This is the case if #PxPairFlag::eSOLVE_CONTACT has been set for the pair.

    • eINTERNAL_CONTACTS_ARE_FLIPPED

      public static final PxContactPairFlagEnum eINTERNAL_CONTACTS_ARE_FLIPPED
      Internal flag, used by #PxContactPair.extractContacts()

      The provided contact point information is flipped with regards to the shapes of the contact pair. This mainly concerns the order of the internal triangle indices.

  • Field Details

    • value

      public final int value
  • Method Details

    • values

      public static PxContactPairFlagEnum[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PxContactPairFlagEnum valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • forValue

      public static PxContactPairFlagEnum forValue(int value)