java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.Shape
com.github.stephengold.joltjni.DecoratedShape
com.github.stephengold.joltjni.ScaledShape
- All Implemented Interfaces:
ConstJoltPhysicsObject
,ConstShape
,RefTarget
,AutoCloseable
,Comparable<JoltPhysicsObject>
Apply scaling to an existing
Shape
.-
Constructor Summary
ConstructorsConstructorDescriptionScaledShape
(ConstShape baseShape, Vec3Arg scaleFactors) Instantiate a shape based on the specified shape and scale factors. -
Method Summary
Methods inherited from class com.github.stephengold.joltjni.DecoratedShape
getInnerShape
Methods inherited from class com.github.stephengold.joltjni.Shape
copyDebugTriangles, countDebugTriangles, draw, drawGetSupportFunction, getCenterOfMass, getInnerRadius, getLeafShape, getLocalBounds, getMassProperties, getMaterial, getRefCount, getRevisionCount, getStats, getSubShapeIdBitsRecursive, getSubType, getType, getWorldSpaceBounds, getWorldSpaceBounds, isValidScale, makeScaleValid, mustBeStatic, saveBinaryState, setEmbedded, sRestoreFromBinaryState, 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
-
ScaledShape
Instantiate a shape based on the specified shape and scale factors.- Parameters:
baseShape
- the unscaled base shape (not null)scaleFactors
- the desired scale factors (not null)
-
-
Method Details
-
getScale
Copy the shape's scale factors. The shape is unaffected.- Returns:
- a new scaling vector
-