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

The position in world space.

position: Position3d;

rotation

The Euler rotation in degrees.

rotation: Rotation3d;

scale

The scale along each axis.

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.

equals(other: Instance): boolean;

On this page