java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.AaBoxCast
- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
An axis-aligned box translating along a line segment. (native type:
AABoxCast)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBox()
Access the box at its starting location.Copy the length and direction of the cast.void
setBox
(ConstAaBox box) Alter the box and its starting location.void
setDirection
(Vec3Arg offset) Alter the length and direction of the cast.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Constructor Details
-
AaBoxCast
public AaBoxCast()Instantiate an invalid box cast. -
AaBoxCast
Instantiate a copy of the specified box cast.- Parameters:
original
- the box to copy (notnull
, unaffected)
-
-
Method Details
-
getBox
Access the box at its starting location. (native member: mBox)- Returns:
- a new JVM object with the pre-existing native object assigned
-
getDirection
Copy the length and direction of the cast. The box cast is unaffected. (native member: mDirection)- Returns:
- a new vector
-
setBox
Alter the box and its starting location. (native member: mBox)- Parameters:
box
- the desired extents and starting location (not null, unaffected)
-
setDirection
Alter the length and direction of the cast. (native member: mDirection)- Parameters:
offset
- the desired direction and length of the cast.
-