Class TaperedCylinderShape

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

public class TaperedCylinderShape extends ConvexShape
A Shape to represent a conical frustum.
  • Method Details

    • getBottomRadius

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

      public float getConvexRadius()
      Return the convex radius. The shape is unaffected.
      Returns:
      the convex radius (≥0)
    • getHalfHeight

      public float getHalfHeight()
      Return the half height. The shape is unaffected.
      Returns:
      half the height
    • getTopRadius

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