Interface ConstBoxShapeSettings
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstConvexShapeSettings,ConstJoltPhysicsObject,ConstSerializableObject,ConstShapeSettings
- All Known Implementing Classes:
BoxShapeSettings
Read-only access to a
BoxShapeSettings object. (native type: const
BoxShapeSettings)-
Method Summary
Modifier and TypeMethodDescriptionfloatReturn the convex radius.Copy the extent of the box.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstConvexShapeSettings
getDensity, getMaterialMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVaMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstSerializableObject
getRttiMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstShapeSettings
create, getRefCount, toRefC
-
Method Details
-
getConvexRadius
float getConvexRadius()Return the convex radius. The settings are unaffected.- Returns:
- the convex radius (≥0)
-
getHalfExtent
Vec3 getHalfExtent()Copy the extent of the box. The settings are unaffected.- Returns:
- a new vector: one-half of extent on each local axis
-