Skip to main content

Type Alias: ModelPlacement

ModelPlacement = object

Properties​

offset?​

readonly optional offset?: object

position?​

readonly optional position?: PlacementVector

Where the pivot point of the model sits, in scene space.

rotation?​

readonly optional rotation?: PlacementVector

Euler rotation in degrees.

scale?​

readonly optional scale?: number

Uniform scale. Values that are not greater than zero are ignored.


parent?​

readonly optional parent?: ModelParent

The model this one is attached to. The offset is then relative to the parent's origin, or to the chosen slot on the parent. The model follows its parent, including when the parent's model is swapped for another.


pivot?​

readonly optional pivot?: ModelPivot

Which point of the model's bounding box sits at the offset position. Defaults to the model's own origin.