fitToPlaces beta
Function of @v12-engine/engine
ts
export declare function fitToPlaces(context: FormationContext, places: readonly Vec2[]): Map<EntityId, Vec2>;Fits units to places so that their ways cross as little as can be: the places in order, the front first, each to the unit nearest it, measured from where the group is to where it goes (the unit's place in the group against the place's in the formation). A unit left without a place goes to the target