scripts/utils/fitModelToViewport
이 콘텐츠는 아직 해당 언어로 제공되지 않습니다.
Functions
Section titled “Functions”fitModelToViewport()
Section titled “fitModelToViewport()”function fitModelToViewport(model: Group<Object3DEventMap>, camera: PerspectiveCamera): number
Defined in: studiocms/packages/studiocms/src/scripts/utils/fitModelToViewport.ts:8
Takes in a GLTF model and fits it into a camera’s viewport.
Parameters
Section titled “Parameters”Group
<Object3DEventMap
>
The model to fit
camera
Section titled “camera”PerspectiveCamera
The camera to fit the model into
Returns
Section titled “Returns”number