Class ScaledShapeSettings

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

public class ScaledShapeSettings extends DecoratedShapeSettings
Settings used to construct a ScaledShape.
  • Constructor Details

    • ScaledShapeSettings

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

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

    • getScale

      public Vec3 getScale()
      Copy the scale factors. The settings are unaffected.
      Returns:
      a new scaling vector