java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.TransformedConvexObject
com.github.stephengold.joltjni.TransformedAaBox
- All Implemented Interfaces:
ConstJoltPhysicsObject
,ConstTransformedConvexObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
An aligned box combined with a coordinate transform. (native type:
TransformedConvexObject<AABox>
)-
Constructor Summary
ConstructorsConstructorDescriptionTransformedAaBox
(Mat44Arg transform, ConstAaBox box) Instantiate an object for the specified transform and box. -
Method Summary
Modifier and TypeMethodDescriptiongetSupport
(Vec3Arg direction) Calculate the support vector for the specified direction.Copy the coordinate transform.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Constructor Details
-
TransformedAaBox
Instantiate an object for the specified transform and box.- Parameters:
transform
- the desired coordinate transform (not null, uniform scaling, unaffected)box
- the desired base box (not null, unaffected)
-
-
Method Details
-
getSupport
Calculate the support vector for the specified direction. The convex object is unaffected.- Parameters:
direction
- the direction to use (not null, unaffected)- Returns:
- a new location vector
-
getTransform
Copy the coordinate transform. The convex object is unaffected. (native member: mTransform)- Returns:
- a new transform matrix
-