Skip to content

standsInWay beta ​

Function of @v12-engine/engine

ts
export declare function standsInWay(world: World, mover: Entity, other: Entity): boolean;

Whether another unit stands in a mover's way: there, standing still, and on the same crowd, where each steers round the other and neither walks through. What moves is steered round by the navigation; what is a ghost is walked through; what flies or sails goes its own way. What the mover walks to, or stands where it is going, is not in its way either: it stops by it, close enough (a follower by the one it follows, a unit sent where another stands), rather than send it off