Package com.github.stephengold.joltjni
Class RotatedTranslatedShapeSettings
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.RotatedTranslatedShapeSettings
- All Implemented Interfaces:
ConstJoltPhysicsObject
,ConstShapeSettings
,RefTarget
,AutoCloseable
,Comparable<JoltPhysicsObject>
Settings used to construct a
RotatedTranslatedShape
.-
Constructor Summary
ConstructorsConstructorDescriptionRotatedTranslatedShapeSettings
(Vec3Arg offset, QuatArg rotation, ConstShape baseShape) Instantiate a settings object with the specified offset, rotation, and base shape.RotatedTranslatedShapeSettings
(Vec3Arg offset, QuatArg rotation, ConstShapeSettings baseShapeSettings) Instantiate a settings object with the specified offset, rotation, and base settings. -
Method Summary
Modifier and TypeMethodDescriptionCopy the offset relative to the base shape.Copy the rotation relative to the base shape.void
setPosition
(Vec3Arg offset) Alter the offset relative to the base shape.void
setRotation
(QuatArg rotation) Alter the rotation relative to the base shape.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
-
RotatedTranslatedShapeSettings
Instantiate a settings object with the specified offset, rotation, and base shape.- Parameters:
offset
- (not null, unaffected)rotation
- (not null, not zero, unaffected)baseShape
- the base shape (not null, unaffected)
-
RotatedTranslatedShapeSettings
public RotatedTranslatedShapeSettings(Vec3Arg offset, QuatArg rotation, ConstShapeSettings baseShapeSettings) Instantiate a settings object with the specified offset, rotation, and base settings.- Parameters:
offset
- (not null, unaffected)rotation
- (not null, not zero, unaffected)baseShapeSettings
- settings for the base shape (not null)
-
-
Method Details
-
getPosition
Copy the offset relative to the base shape. The settings are unaffected. (native attribute: mPosition)- Returns:
- a new, mutable offset vector
-
getRotation
Copy the rotation relative to the base shape. The settings are unaffected. (native attribute: mRotation)- Returns:
- a new, mutable rotation quaternion
-
setPosition
Alter the offset relative to the base shape. (native attribute: mPosition)- Parameters:
offset
- the desired offset vector (not null, unaffected, default=(0,0,0))
-
setRotation
Alter the rotation relative to the base shape. (native attribute: mRotation)- Parameters:
rotation
- the desired rotation quaternion (not null, unaffected)
-