MakeWay beta
Interface of @v12-engine/engine
ts
export interface MakeWayAn ally standing in a unit's way is asked to step aside, to point (see RuleSettings.movement.makesWay, lookAhead): change where it goes, or make it null to leave it standing. mover is on its way, heading the way of direction
Members
direction
ts
readonly direction: Vec2;Where the mover is heading, a unit long
mover
ts
readonly mover: Entity;The unit that is on its way
other
ts
readonly other: Entity;The ally standing in its way, asked to step aside
point
ts
point: Vec2 | null;Where the other unit goes; change it, or null to leave it standing