Package com.github.stephengold.joltjni
Class ScaledShapeSettings
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.SerializableObject
com.github.stephengold.joltjni.ShapeSettings
com.github.stephengold.joltjni.DecoratedShapeSettings
com.github.stephengold.joltjni.ScaledShapeSettings
- All Implemented Interfaces:
ConstJoltPhysicsObject,ConstSerializableObject,ConstShapeSettings,RefTarget,AutoCloseable,Comparable<JoltPhysicsObject>
Settings used to construct a
ScaledShape.-
Constructor Summary
ConstructorsConstructorDescriptionScaledShapeSettings(ConstShape baseShape, Vec3Arg scaleFactors) Instantiate a settings based on the specified shape and scale factors.ScaledShapeSettings(ConstShapeSettings baseSettings, Vec3Arg scaleFactors) Instantiate a settings based on the specified settings and scale factors.ScaledShapeSettings(ScaledShapeSettings original) Instantiate a copy of the specified settings. -
Method Summary
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
-
Constructor Details
-
ScaledShapeSettings
Instantiate a settings based on the specified shape and scale factors.- Parameters:
baseShape- the unscaled base shape (not null)scaleFactors- the desired scale factors (not null)
-
ScaledShapeSettings
Instantiate a settings based on the specified settings and scale factors.- Parameters:
baseSettings- the unscaled base shape settings (not null)scaleFactors- the desired scale factors (not null)
-
ScaledShapeSettings
Instantiate a copy of the specified settings.- Parameters:
original- the settings to copy (notnull, unaffected)
-
-
Method Details
-
getScale
Copy the scale factors. The settings are unaffected.- Returns:
- a new scaling vector
-