Interface ConstOrientedBox
- All Superinterfaces:
Comparable<JoltPhysicsObject>
,ConstJoltPhysicsObject
- All Known Implementing Classes:
OrientedBox
Read-only access to an
OrientedBox
. (native type: const OrientedBox)-
Method Summary
Modifier and TypeMethodDescriptionCopy the (half) extent of the box on each local axis.Copy the transform that translates and rotates the local-space axes to world space.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getHalfExtents
Vec3 getHalfExtents()Copy the (half) extent of the box on each local axis. The box is unaffected.- Returns:
- a new vector
-
getOrientation
Mat44 getOrientation()Copy the transform that translates and rotates the local-space axes to world space. The box is unaffected.- Returns:
- a new matrix
-