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

public class SphereShape extends ConvexShape
A Shape to represent centered spheres.
  • Constructor Details

    • SphereShape

      public SphereShape(float radius)
      Instantiate a shape with the specified radius.
      Parameters:
      radius - the desired radius
  • Method Details

    • getRadius

      public float getRadius()
      Return the radius. The shape is unaffected.
      Returns:
      the radius (≥0)