Skip to content

FormationUnit beta ​

Interface of @v12-engine/engine

ts
export interface FormationUnit

A unit as a preview of a formation knows it: where it stands and how big it is

Members ​

id ​

ts
readonly id: EntityId;

The unit's entity id

pos ​

ts
readonly pos: Vec2;

Where it stands, in cells

radius ​

ts
readonly radius: number;

Its collision radius, in cells