Class TaperedCapsuleShape

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

public class TaperedCapsuleShape extends ConvexShape
A Shape to represent the convex hull of 2 spheres centered on the axis.
  • Method Details

    • getBottomRadius

      public float getBottomRadius()
      Return the bottom radius. The shape is unaffected.
      Returns:
      the bottom radius of the tapered cylinder (≥0)
    • getHalfHeight

      public float getHalfHeight()
      Return the half height. The shape is unaffected.
      Returns:
      half the center-to-center distance between the spheres (≥0)
    • getTopRadius

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