the object to fit
the volume to fit the object into
Optional
opts: { options for fitting
Optional
ignore?: Object3D[]Objects to ignore when calculating the obj's bounding box
Optional
position?: booleanwhen true
aligns the objects position to the volume ground
true
Optional
scale?: booleanwhen true
scales the object to fit the volume
true
The object's bounding box before fitting
The scale that was applied to the object
Generated using TypeDoc
Fits an object into a bounding volume. The volume is defined by a Box3 in world space.