Package com.github.stephengold.joltjni
Class OffsetCenterOfMassShapeSettings
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.DecoratedShapeSettings
com.github.stephengold.joltjni.OffsetCenterOfMassShapeSettings
- All Implemented Interfaces:
ConstJoltPhysicsObject
,ConstShapeSettings
,RefTarget
,AutoCloseable
,Comparable<JoltPhysicsObject>
Settings used to construct an
OffsetCenterOfMassShape
.-
Constructor Summary
ConstructorsConstructorDescriptionOffsetCenterOfMassShapeSettings
(Vec3Arg offset, ConstShape baseShape) Instantiate a settings object with the specified offset and base shape.OffsetCenterOfMassShapeSettings
(Vec3Arg offset, ConstShapeSettings baseShapeSettings) Instantiate a settings object with the specified offset and base-shape settings. -
Method Summary
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
-
Constructor Details
-
OffsetCenterOfMassShapeSettings
Instantiate a settings object with the specified offset and base shape.- Parameters:
offset
- (not null, unaffected)baseShape
- the desired base shape (not null)
-
OffsetCenterOfMassShapeSettings
Instantiate a settings object with the specified offset and base-shape settings.- Parameters:
offset
- (not null, unaffected)baseShapeSettings
- settings to create the base shape (not null)
-
-
Method Details
-
getOffset
Copy the offset relative to the base shape. The settings are unaffected. (native attribute: mOffset)- Returns:
- a new, mutable offset vector
-
setOffset
Alter the offset relative to the base shape. (native attribute: mOffset)- Parameters:
offset
- the desired offset vector (not null, unaffected, default=(0,0,0))
-