Interface ConstConvexHullShapeSettings
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstConvexShapeSettings,ConstJoltPhysicsObject,ConstSerializableObject,ConstShapeSettings
- All Known Implementing Classes:
ConvexHullShapeSettings
Read-only access to a
ConvexHullShapeSettings object. (native type:
const ConvexHullShapeSettings)-
Method Summary
Modifier and TypeMethodDescriptioncopyPoint(int index) Copy one of the points to use when creating the hull.Vec3[]Copy the points to use when creating the hull.intCount the points to use when creating the hull.floatReturn the positional tolerance used when generating the hull.floatReturn the convex radius.floatReturn the maximum separation between the shrunk hull + convex radius and the actual hull.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, targetVa, targetVaOrZeroMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstSerializableObject
getRttiMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstShapeSettings
create, getRefCount, toRefC
-
Method Details
-
copyPoint
Copy one of the points to use when creating the hull. The settings are unaffected.- Parameters:
index- the index of the point to copy (≥0)- Returns:
- a new location vector
-
copyPoints
Vec3[] copyPoints()Copy the points to use when creating the hull. The settings are unaffected.- Returns:
- a new array of new vectors
-
countPoints
int countPoints()Count the points to use when creating the hull. The settings are unaffected.- Returns:
- the count (≥0)
-
getHullTolerance
float getHullTolerance()Return the positional tolerance used when generating the hull. The settings are unaffected.- Returns:
- the distance (≥0)
-
getMaxConvexRadius
float getMaxConvexRadius()Return the convex radius. The settings are unaffected.- Returns:
- the convex radius (≥0)
-
getMaxErrorConvexRadius
float getMaxErrorConvexRadius()Return the maximum separation between the shrunk hull + convex radius and the actual hull. The settings are unaffected.- Returns:
- the maximum separation (≥0)
-