Aller au contenu

scripts/utils/fitModelToViewport

Ce contenu n’est pas encore disponible dans votre langue.

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