Skip to content

spotFor beta ​

Function of @v12-engine/engine

ts
export declare function spotFor(world: World, attacker: Entity, target: Entity): Vec2;

Where the attacker goes to fight the target from: its spot around it, out where its weapon reaches, or the target itself without one. The game's approach hook has the last word