- All Implemented Interfaces:
Serializable,Comparable<PxHitFlagEnum>,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReport any first hit.Performance hint flag for sweeps when it is known upfront there's no initial overlap."face index" member of #PxQueryHit is validDeprecated.Deprecated, please use eANY_HIT instead.Report hits with back faces of mesh triangles.Report all hits for meshes rather than just the first.Only this subset of flags can be modified by pre-filter.Report the minimum translation depth, normal and contact point."normal" member of #PxQueryHit is valid"position" member of #PxQueryHit is validUse more accurate but slower narrow phase sweep tests."u" and "v" barycentric coordinates of #PxQueryHit are valid. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PxHitFlagEnumforValue(int value) static PxHitFlagEnumReturns the enum constant of this class with the specified name.static PxHitFlagEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ePOSITION
"position" member of #PxQueryHit is valid -
eNORMAL
"normal" member of #PxQueryHit is valid -
eUV
"u" and "v" barycentric coordinates of #PxQueryHit are valid. Not applicable to sweep queries. -
eASSUME_NO_INITIAL_OVERLAP
Performance hint flag for sweeps when it is known upfront there's no initial overlap. -
eANY_HIT
Report any first hit. Used for geometries that contain more than one primitive. For meshes, -
eMESH_MULTIPLE
Report all hits for meshes rather than just the first. Not applicable to sweep queries. -
eMESH_ANY
Deprecated.Deprecated, please use eANY_HIT instead. -
eMESH_BOTH_SIDES
Report hits with back faces of mesh triangles. Also report hits for raycast -
ePRECISE_SWEEP
Use more accurate but slower narrow phase sweep tests. -
eMTD
Report the minimum translation depth, normal and contact point. -
eFACE_INDEX
"face index" member of #PxQueryHit is valid -
eDEFAULT
-
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
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
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 nameNullPointerException- if the argument is null
-
forValue
-