All Implemented Interfaces:
ConstJoltPhysicsObject, ConstShape, RefTarget, AutoCloseable, Comparable<JoltPhysicsObject>
Direct Known Subclasses:
BoxShape, CapsuleShape, ConvexHullShape, CylinderShape, SphereShape, TaperedCapsuleShape, TaperedCylinderShape, TriangleShape

public abstract class ConvexShape extends Shape
A type of Shape that inherently possesses the convex property.
  • Method Details

    • getDensity

      public float getDensity()
      Return the density.
      Returns:
      the density
    • getSupportFunction

      public Support getSupportFunction(ESupportMode supportMode, SupportBuffer buffer, Vec3Arg scale)
      Access the shape's support function.
      Parameters:
      supportMode - how to handle convex radius (not null)
      buffer - buffer storage (not null)
      scale - scale factors to apply (in local coordinates, not null, unaffected)
      Returns:
      a new JVM object with the pre-existing native object assigned
    • setDensity

      public void setDensity(float density)
      Alter the density.
      Parameters:
      density - the desired density