Package com.github.stephengold.joltjni
Class ScaledShapeSettings
- All Implemented Interfaces:
ConstJoltPhysicsObject,RefTarget,AutoCloseable,Comparable<ConstJoltPhysicsObject>
Settings used to construct a
ScaledShape.-
Constructor Summary
ConstructorsConstructorDescriptionScaledShapeSettings(Shape baseShape, Vec3Arg scaleFactors) Instantiate a settings based on the specified shape and scale factors.ScaledShapeSettings(ShapeRefC baseShapeRef, Vec3Arg scaleFactors) Instantiate a settings based on the specified shape reference and scale factors.ScaledShapeSettings(ShapeSettings 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, toRefMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, startCleaner, toString, va
-
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 shape reference and scale factors.- Parameters:
baseShapeRef- a reference to 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
-