Package com.github.stephengold.joltjni
Class ScaledShapeSettings
- All Implemented Interfaces:
ConstJoltPhysicsObject
,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. -
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
-
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)
-
-
Method Details
-
getScale
Copy the scale factors. The settings are unaffected.- Returns:
- a new scaling vector
-