java.lang.Object
physx.NativeObject
physx.physics.PxQueryHit
- Direct Known Subclasses:
PxLocationHit,PxOverlapHit
Scene query hit information.
-
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 PxQueryHitarrayGet(long baseAddress, int index) voiddestroy()intFace index of touched triangle, for triangle meshes, convex meshes and height fields.voidsetFaceIndex(int value) Face index of touched triangle, for triangle meshes, convex meshes and height fields.static PxQueryHitwrapPointer(long address) Methods 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
-
PxQueryHit
protected PxQueryHit() -
PxQueryHit
protected PxQueryHit(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getFaceIndex
public int getFaceIndex()Face index of touched triangle, for triangle meshes, convex meshes and height fields.Note: This index will default to 0xFFFFffff value for overlap queries. Note: Please refer to the user guide for more details for sweep queries. Note: This index is remapped by mesh cooking. Use #PxTriangleMesh::getTrianglesRemap() to convert to original mesh index. Note: For convex meshes use #PxConvexMesh::getPolygonData() to retrieve touched polygon data.
-
setFaceIndex
public void setFaceIndex(int value) Face index of touched triangle, for triangle meshes, convex meshes and height fields.Note: This index will default to 0xFFFFffff value for overlap queries. Note: Please refer to the user guide for more details for sweep queries. Note: This index is remapped by mesh cooking. Use #PxTriangleMesh::getTrianglesRemap() to convert to original mesh index. Note: For convex meshes use #PxConvexMesh::getPolygonData() to retrieve touched polygon data.
-