Class RotatedTranslatedShapeSettings

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

public class RotatedTranslatedShapeSettings extends DecoratedShapeSettings
Settings used to construct a RotatedTranslatedShape.
  • Constructor Details

    • RotatedTranslatedShapeSettings

      public RotatedTranslatedShapeSettings(Vec3Arg offset, QuatArg rotation, ConstShape baseShape)
      Instantiate a settings object with the specified offset, rotation, and base shape.
      Parameters:
      offset - (not null, unaffected)
      rotation - (not null, not zero, unaffected)
      baseShape - the base shape (not null, unaffected)
    • RotatedTranslatedShapeSettings

      public RotatedTranslatedShapeSettings(Vec3Arg offset, QuatArg rotation, ConstShapeSettings baseShapeSettings)
      Instantiate a settings object with the specified offset, rotation, and base settings.
      Parameters:
      offset - (not null, unaffected)
      rotation - (not null, not zero, unaffected)
      baseShapeSettings - settings for the base shape (not null)
  • Method Details

    • getPosition

      public Vec3 getPosition()
      Copy the offset relative to the base shape. The settings are unaffected. (native attribute: mPosition)
      Returns:
      a new, mutable offset vector
    • getRotation

      public Quat getRotation()
      Copy the rotation relative to the base shape. The settings are unaffected. (native attribute: mRotation)
      Returns:
      a new, mutable rotation quaternion
    • setPosition

      public void setPosition(Vec3Arg offset)
      Alter the offset relative to the base shape. (native attribute: mPosition)
      Parameters:
      offset - the desired offset vector (not null, unaffected, default=(0,0,0))
    • setRotation

      public void setRotation(QuatArg rotation)
      Alter the rotation relative to the base shape. (native attribute: mRotation)
      Parameters:
      rotation - the desired rotation quaternion (not null, unaffected)