Package physx.physics

Enum Class PxHitFlagEnum

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

public enum PxHitFlagEnum extends Enum<PxHitFlagEnum>
Scene query and geometry query behavior flags.

PxHitFlags are used for 3 different purposes:

1) To request hit fields to be filled in by scene queries (such as hit position, normal, face index or UVs). 2) Once query is completed, to indicate which fields are valid (note that a query may produce more valid fields than requested). 3) To specify additional options for the narrow phase and mid-phase intersection routines.

All these flags apply to both scene queries and geometry queries (PxGeometryQuery).

See also: PxRaycastHit PxSweepHit PxOverlapHit PxScene.raycast PxScene.sweep PxScene.overlap PxGeometryQuery PxFindFaceIndex

  • Enum Constant Details

    • ePOSITION

      public static final PxHitFlagEnum ePOSITION
      "position" member of #PxQueryHit is valid
    • eNORMAL

      public static final PxHitFlagEnum eNORMAL
      "normal" member of #PxQueryHit is valid
    • eUV

      public static final PxHitFlagEnum eUV
      "u" and "v" barycentric coordinates of #PxQueryHit are valid. Not applicable to sweep queries.
    • eASSUME_NO_INITIAL_OVERLAP

      public static final PxHitFlagEnum eASSUME_NO_INITIAL_OVERLAP
      Performance hint flag for sweeps when it is known upfront there's no initial overlap.
    • eANY_HIT

      public static final PxHitFlagEnum eANY_HIT
      Report any first hit. Used for geometries that contain more than one primitive. For meshes,
    • eMESH_MULTIPLE

      public static final PxHitFlagEnum eMESH_MULTIPLE
      Report all hits for meshes rather than just the first. Not applicable to sweep queries.
    • eMESH_ANY

      @Deprecated public static final PxHitFlagEnum eMESH_ANY
      Deprecated.
      Deprecated, please use eANY_HIT instead.
    • eMESH_BOTH_SIDES

      public static final PxHitFlagEnum eMESH_BOTH_SIDES
      Report hits with back faces of mesh triangles. Also report hits for raycast
    • ePRECISE_SWEEP

      public static final PxHitFlagEnum ePRECISE_SWEEP
      Use more accurate but slower narrow phase sweep tests.
    • eMTD

      public static final PxHitFlagEnum eMTD
      Report the minimum translation depth, normal and contact point.
    • eFACE_INDEX

      public static final PxHitFlagEnum eFACE_INDEX
      "face index" member of #PxQueryHit is valid
    • eDEFAULT

      public static final PxHitFlagEnum eDEFAULT
    • eMODIFIABLE_FLAGS

      public static final PxHitFlagEnum eMODIFIABLE_FLAGS
      Only this subset of flags can be modified by pre-filter. Other modifications will be discarded.
  • Field Details

    • value

      public final int value
  • Method Details

    • values

      public static PxHitFlagEnum[] 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 PxHitFlagEnum 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 PxHitFlagEnum forValue(int value)