Skip to content

Moving beta ​

Interface of @v12-engine/editor

ts
export interface Moving

How a drag, a turn or a copy put down elsewhere moves what it holds: where each place goes, which way what faced a way faces then, and what a size becomes. A collection says what of one of its things that changes (moved)

Members ​

facing ​

ts
facing(facing: number): number;

Which way what faced so faces after the turn

place ​

ts
place(at: Vec2): Vec2;

Where a place goes

scale ​

ts
readonly scale: number;

How much bigger it gets

size ​

ts
size(value: number): number;

A size or a length as it is kept after the change: rounded to the map's grain for a copy, as it is for a drag

turn ​

ts
readonly turn: number;

How far it turns, in radians, the way facings turn: a quarter takes what was ahead (+z) to the right (+x)