Class CompoundShapeSettings

All Implemented Interfaces:
ConstJoltPhysicsObject, ConstShapeSettings, RefTarget, AutoCloseable, Comparable<JoltPhysicsObject>
Direct Known Subclasses:
MutableCompoundShapeSettings, StaticCompoundShapeSettings

public abstract class CompoundShapeSettings extends ShapeSettings
Settings used to construct a CompoundShape.
  • Method Details

    • addHulls

      public void addHulls(Collection<ConvexHull> hulls)
      Add a collection of convex hulls generated by V-HACD.
      Parameters:
      hulls - the hulls to add (not null, unaffected)
    • addShape

      public void addShape(float xOffset, float yOffset, float zOffset, ConstShapeSettings subSettings)
      Add the specified sub-shape at the specified offset.
      Parameters:
      xOffset - the desired X offset for the sub-shape
      yOffset - the desired Y offset for the sub-shape
      zOffset - the desired Z offset for the sub-shape
      subSettings - the desired sub-shape settings (not null)
    • addShape

      public void addShape(Vec3Arg offset, QuatArg rotation, ConstShape subShape)
      Add the specified sub-shape at the specified position.
      Parameters:
      offset - the desired offset for the sub-shape (not null, unaffected)
      rotation - the desired rotation for the sub-shape ((not null, not zero, unaffected)
      subShape - the sub-shape to add (not null)
    • addShape

      public void addShape(Vec3Arg offset, QuatArg rotation, ConstShapeSettings subSettings)
      Add the specified sub-shape at the specified position.
      Parameters:
      offset - the desired offset for the sub-shape (not null, unaffected)
      rotation - the desired rotation for the sub-shape (not null, not zero, unaffected)
      subSettings - the desired sub-shape settings (not null)