Package com.github.stephengold.joltjni
Class CompoundShapeSettings
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.SerializableObject
com.github.stephengold.joltjni.ShapeSettings
com.github.stephengold.joltjni.CompoundShapeSettings
- All Implemented Interfaces:
ConstJoltPhysicsObject
,ConstShapeSettings
,RefTarget
,AutoCloseable
,Comparable<JoltPhysicsObject>
- Direct Known Subclasses:
MutableCompoundShapeSettings
,StaticCompoundShapeSettings
Settings used to construct a
CompoundShape
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
addHulls
(Collection<ConvexHull> hulls) Add a collection of convex hulls generated by V-HACD.void
addShape
(float xOffset, float yOffset, float zOffset, ConstShapeSettings subSettings) Add the specified sub-shape at the specified offset.void
addShape
(Vec3Arg offset, QuatArg rotation, ConstShape subShape) Add the specified sub-shape at the specified position.void
addShape
(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, create, getRefCount, setEmbedded, toRef, toRefC
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
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-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)
-