Interface ConstBoxShapeSettings
- All Superinterfaces:
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 TypeMethodDescriptionfloat
Return the convex radius.Copy the extent of the box.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstConvexShapeSettings
getDensity, getMaterial
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstSerializableObject
getRtti
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstShapeSettings
create, 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
-