Class CompoundShape

All Implemented Interfaces:
ConstJoltPhysicsObject, ConstShape, RefTarget, AutoCloseable, Comparable<ConstJoltPhysicsObject>
Direct Known Subclasses:
MutableCompoundShape, StaticCompoundShape

public abstract class CompoundShape extends Shape
A Shape composed from a union of simpler subshapes.
  • Method Details

    • getNumSubShapes

      public int getNumSubShapes()
      Count the subshapes.
      Returns:
      the count (≥0)
    • getSubShape

      public SubShape getSubShape(int subShapeIndex)
      Access the specified subshape.
      Parameters:
      subShapeIndex - the index of the subshape (≥0)
      Returns:
      a new JVM object with the pre-existing native object assigned