Interface ConstSphere
- All Superinterfaces:
Comparable<JoltPhysicsObject>
,ConstJoltPhysicsObject
- All Known Implementing Classes:
Sphere
Read-only access to an
Sphere
. (native type: const Sphere)-
Method Summary
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getCenter
Vec3 getCenter()Copy the location of the sphere's center.- Returns:
- a new location vector
-
getRadius
float getRadius()Return the radius of the sphere.- Returns:
- the radius
-
getSupport
Calculate the support vector for the specified direction.- Parameters:
direction
- the direction to use (not null, unaffected)- Returns:
- a new offset vector
-