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

public class ScaledShape extends DecoratedShape
Apply scaling to an existing Shape.
  • Constructor Details

    • ScaledShape

      public ScaledShape(ConstShape baseShape, Vec3Arg scaleFactors)
      Instantiate a shape based on the specified shape and scale factors.
      Parameters:
      baseShape - the unscaled base shape (not null)
      scaleFactors - the desired scale factors (not null)
  • Method Details

    • getScale

      public Vec3 getScale()
      Copy the shape's scale factors. The shape is unaffected.
      Returns:
      a new scaling vector