컨텐츠로 건너뛰기

scripts/utils/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.

Group<Object3DEventMap>

The model to fit

PerspectiveCamera

The camera to fit the model into

number