Package com.github.stephengold.joltjni
Class TransformedSphere
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.TransformedConvexObject
com.github.stephengold.joltjni.TransformedSphere
- All Implemented Interfaces:
ConstJoltPhysicsObject
,ConstTransformedConvexObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
A sphere combined with a coordinate transform. (native type:
TransformedConvexObject<Sphere>
)-
Constructor Summary
ConstructorsConstructorDescriptionTransformedSphere
(Mat44Arg transform, ConstSphere sphere) Instantiate an object for the specified transform and sphere. -
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
-
TransformedSphere
Instantiate an object for the specified transform and sphere.- Parameters:
transform
- the desired coordinate transform (not null, uniform scaling, unaffected)sphere
- the desired base sphere (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
-