All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public class ChbFace extends NonCopyable
A triangular face in a ConvexHullBuilder. (native type: ConvexHullBuilder::Face)
  • Method Details

    • getCentroid

      public Vec3 getCentroid()
      Return the centroid of the face. The face is unaffected. (native attribute: mCentroid)
      Returns:
      a new location vector
    • getFirstEdge

      public ChbEdge getFirstEdge()
      Access the first edge of the face. The face is unaffected. (native attribute: mFirstEdge)
      Returns:
      a new JVM object with the pre-existing native object assigned, or null if none
    • getNormal

      public Vec3 getNormal()
      Return the normal of the face. The face is unaffected. (native attribute: mNormal)
      Returns:
      a new vector whose length is 2 times the area of the face
    • isFacing

      public boolean isFacing(Vec3Arg point)
      Test whether the face is facing the specified point. The face is unaffected.
      Parameters:
      point - the location to test (not null, unaffected)
      Returns:
      true if facing the test point, otherwise false