java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.AaBoxCast
All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public final class AaBoxCast extends JoltPhysicsObject
An axis-aligned box translating along a line segment. (native type: AABoxCast)
  • Constructor Details

    • AaBoxCast

      public AaBoxCast()
      Instantiate an invalid box cast.
    • AaBoxCast

      public AaBoxCast(AaBoxCast original)
      Instantiate a copy of the specified box cast.
      Parameters:
      original - the box to copy (not null, unaffected)
  • Method Details

    • getBox

      public AaBox getBox()
      Access the box at its starting location. (native member: mBox)
      Returns:
      a new JVM object with the pre-existing native object assigned
    • getDirection

      public Vec3 getDirection()
      Copy the length and direction of the cast. The box cast is unaffected. (native member: mDirection)
      Returns:
      a new vector
    • setBox

      public void setBox(ConstAaBox box)
      Alter the box and its starting location. (native member: mBox)
      Parameters:
      box - the desired extents and starting location (not null, unaffected)
    • setDirection

      public void setDirection(Vec3Arg offset)
      Alter the length and direction of the cast. (native member: mDirection)
      Parameters:
      offset - the desired direction and length of the cast.