Package com.github.stephengold.joltjni
Class CompoundShape
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.Shape
com.github.stephengold.joltjni.CompoundShape
- All Implemented Interfaces:
ConstJoltPhysicsObject,ConstShape,RefTarget,AutoCloseable,Comparable<ConstJoltPhysicsObject>
- Direct Known Subclasses:
MutableCompoundShape,StaticCompoundShape
A
Shape composed from a union of simpler subshapes.-
Method Summary
Modifier and TypeMethodDescriptionintCount the subshapes.getSubShape(int subShapeIndex) Access the specified subshape.Methods inherited from class com.github.stephengold.joltjni.Shape
copyDebugTriangles, countDebugTriangles, draw, getCenterOfMass, getInnerRadius, getLocalBounds, getMassProperties, getRefCount, getSubType, getType, getUserData, getWorldSpaceBounds, mustBeStatic, setEmbedded, setUserData, toRef, toRefCMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, startCleaner, toString, vaMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, va
-
Method Details
-
getNumSubShapes
public int getNumSubShapes()Count the subshapes.- Returns:
- the count (≥0)
-
getSubShape
Access the specified subshape.- Parameters:
subShapeIndex- the index of the subshape (≥0)- Returns:
- a new JVM object with the pre-existing native object assigned
-