Model loading · interface

ViewFrame

The sphere a bake frames its views on: a centre and a radius, and nothing about direction.

Explained in Importing models.

interface ViewFrame
import type { ViewFrame } from '@driftengine/assets';

In depth

Carried on the impostor rather than recomputed by its consumer, because an atlas on its own cannot be placed. The quad a sprite is drawn on needs the object's centre and half-extent, and a consumer deriving them a second time from geometry it may no longer be holding is a consumer whose sprite sits somewhere the object is not.

Properties

NameTypeDescription
cxreadonlynumber
cyreadonlynumber
czreadonlynumber
radiusreadonlynumber