Package com.github.stephengold.joltjni
Class CompoundShapeSettings
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.SerializableObject
com.github.stephengold.joltjni.ShapeSettings
com.github.stephengold.joltjni.CompoundShapeSettings
- All Implemented Interfaces:
ConstJoltPhysicsObject,ConstSerializableObject,ConstShapeSettings,RefTarget,AutoCloseable,Comparable<JoltPhysicsObject>
- Direct Known Subclasses:
MutableCompoundShapeSettings,StaticCompoundShapeSettings
Settings used to construct a
CompoundShape.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddHulls(Collection<ConvexHull> hulls) Add a collection of convex hulls generated by V-HACD.voidaddShape(float xOffset, float yOffset, float zOffset, ConstShape subShape) Add the specified sub-shape at the specified offset.voidaddShape(float xOffset, float yOffset, float zOffset, ConstShapeSettings subSettings) Add the specified sub-shape at the specified offset.voidaddShape(Vec3Arg offset, QuatArg rotation, ConstShape subShape) Add the specified sub-shape at the specified position.voidaddShape(Vec3Arg offset, QuatArg rotation, ConstShapeSettings subSettings) Add the specified sub-shape at the specified position.Methods inherited from class com.github.stephengold.joltjni.ShapeSettings
clearCachedResult, cloneShapeSettings, create, getRefCount, setEmbedded, setVirtualAddressAsCoOwner, toRef, toRefCMethods inherited from class com.github.stephengold.joltjni.SerializableObject
getRttiMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, 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, targetVaMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstSerializableObject
getRtti
-
Method Details
-
addHulls
Add a collection of convex hulls generated by V-HACD.- Parameters:
hulls- the hulls to add (not null, unaffected)
-
addShape
Add the specified sub-shape at the specified offset.- Parameters:
xOffset- the desired X offset for the sub-shapeyOffset- the desired Y offset for the sub-shapezOffset- the desired Z offset for the sub-shapesubShape- the sub-shape to add (not null)
-
addShape
Add the specified sub-shape at the specified offset.- Parameters:
xOffset- the desired X offset for the sub-shapeyOffset- the desired Y offset for the sub-shapezOffset- the desired Z offset for the sub-shapesubSettings- the desired sub-shape settings (not null)
-
addShape
Add the specified sub-shape at the specified position.- Parameters:
offset- the desired offset for the sub-shape (not null, unaffected)rotation- the desired rotation for the sub-shape ((not null, not zero, unaffected)subShape- the sub-shape to add (not null)
-
addShape
Add the specified sub-shape at the specified position.- Parameters:
offset- the desired offset for the sub-shape (not null, unaffected)rotation- the desired rotation for the sub-shape (not null, not zero, unaffected)subSettings- the desired sub-shape settings (not null)
-