java.lang.Object
physx.NativeObject
physx.physics.PxQueryHit
physx.physics.PxLocationHit
physx.physics.PxGeomRaycastHit
- Direct Known Subclasses:
PxRaycastHit
Stores results of raycast queries.
::PxHitFlag flags can be passed to raycast function, as an optimization, to cause the SDK to only compute specified members of this structure.
Some members like barycentric coordinates are currently only computed for triangle meshes and height fields, but next versions might provide them in other cases. The client code should check #flags to make sure returned values are valid.
-
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 PxGeomRaycastHitarrayGet(long baseAddress, int index) voiddestroy()floatgetU()floatgetV()barycentric coordinates of hit point, for triangle mesh and height field (flag: #PxHitFlag::eUV)booleanvoidsetU(float value) voidsetV(float value) barycentric coordinates of hit point, for triangle mesh and height field (flag: #PxHitFlag::eUV)static PxGeomRaycastHitwrapPointer(long address) Methods inherited from class physx.physics.PxLocationHit
getDistance, getFlags, getNormal, getPosition, setDistance, setFlags, setNormal, setPositionMethods inherited from class physx.physics.PxQueryHit
getFaceIndex, setFaceIndexMethods 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
-
PxGeomRaycastHit
protected PxGeomRaycastHit() -
PxGeomRaycastHit
protected PxGeomRaycastHit(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy()- Overrides:
destroyin classPxLocationHit
-
getU
public float getU()- Returns:
- WebIDL type: float
-
setU
public void setU(float value) - Parameters:
value- WebIDL type: float
-
getV
public float getV()barycentric coordinates of hit point, for triangle mesh and height field (flag: #PxHitFlag::eUV) -
setV
public void setV(float value) barycentric coordinates of hit point, for triangle mesh and height field (flag: #PxHitFlag::eUV) -
hadInitialOverlap
public boolean hadInitialOverlap()- Returns:
- WebIDL type: boolean
-