Package physx.physics

Class PxQueryHit

java.lang.Object
physx.NativeObject
physx.physics.PxQueryHit
Direct Known Subclasses:
PxLocationHit, PxOverlapHit

public class PxQueryHit extends NativeObject
Scene query hit information.
  • 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

      public static PxQueryHit wrapPointer(long address)
    • arrayGet

      public static PxQueryHit arrayGet(long baseAddress, int index)
    • 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.