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,RefTarget,AutoCloseable,Comparable<ConstJoltPhysicsObject>
Settings used to construct an
OffsetCenterOfMassShape.-
Constructor Summary
ConstructorsConstructorDescriptionOffsetCenterOfMassShapeSettings(Vec3Arg offset, ShapeRefC baseShapeRef) Instantiate a settings object with the specified offset and base shape. -
Method Summary
Methods inherited from class com.github.stephengold.joltjni.ShapeSettings
clearCachedResult, create, getRefCount, setEmbedded, toRefMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, startCleaner, toString, va
-
Constructor Details
-
OffsetCenterOfMassShapeSettings
Instantiate a settings object with the specified offset and base shape.- Parameters:
offset- (not null, unaffected)baseShapeRef- a reference to 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))
-