Atlas Engine
API Referenceatlas

Instance

A transform for an instance of a CoreObject. Transform methods commit changes to the runtime.

Module: atlas

A transform for an instance of a CoreObject. Transform methods commit changes to the runtime.

Declaration

export class Instance { ... }

Properties

position

position: Position3d;

rotation

rotation: Rotation3d;

scale

scale: Scale3d;

Methods

move

Translates by the supplied offset.

move(position: Position3d): void;

setPosition

Sets the position to an absolute value.

setPosition(position: Position3d): void;

setRotation

Replaces the rotation.

setRotation(rotation: Rotation3d): void;

rotate

Applies an incremental rotation.

rotate(rotation: Rotation3d): void;

setScale

Replaces the scale factors.

setScale(scale: Scale3d): void;

scaleBy

Multiplies the current scale component-wise by the supplied factors.

scaleBy(scale: Scale3d): void;

equals

equals(other: Instance): boolean;

On this page