Skip to content

stepAside beta ​

Function of @v12-engine/engine

ts
export declare function stepAside(world: World, mover: Entity, other: Entity, direction: Vec2, agent: AgentState): boolean;

Asks an ally standing in a unit's way to step aside, as the rules allow (RuleSettings.movement.makesWay, the makeWay hook). direction is the way the unit is heading, a unit long; agent where its path goes, for the step to be off it. True when it goes