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

public class Support extends JoltPhysicsObject
Interface to the Gilbert–Johnson–Keerthi (GJK) distance algorithm. (native type: ConvexShape::Support)
  • Method Details

    • getConvexRadius

      public float getConvexRadius()
      Return the convex radius.
      Returns:
      the added distance (in meters)
    • getSupport

      public Vec3 getSupport(float dx, float dy, float dz)
      Calculate a support vector for the specified direction.
      Parameters:
      dx - the X component of the input direction
      dy - the Y component of the input direction
      dz - the Z component of the input direction
      Returns:
      a new location vector relative to the shape's center of mass
    • getSupport

      public Vec3 getSupport(Vec3Arg direction)
      Calculate a support vector for the specified direction.
      Parameters:
      direction - the input direction (not null, unaffected)
      Returns:
      a new location vector relative to the shape's center of mass