Skip to content

Square Formation

Class · USeinSquareFormation : USeinFormation

Parent: Formation

#include "Formations/SeinSquareFormation.h"

Arranges the selected units in a hollow square: bodies line the edges of a square outline around the target point while the middle stays empty, like a massed-infantry square. A click-drag sets how big the square is; a lone unit just stands in the center.

Members are placed evenly along a square OUTLINE about the anchor, not filled solid. A drag sets the outer half-side (the distance from centre to a side, in UE world units, cm); rings fill outside-in and additional concentric squares form automatically from footprint packing (the number of nested squares is derived from how many members fit, not a preset), leaving the centre open. Spacing is footprint-aware so bodies never overlap, and drag-aware facing orients which way the square’s sides point. Defaults FacingMode to RadialOutward so members face away from the centre.

FFixedPoint InterUnitSpacing · default FFixedPoint::Zero

Editable in class defaults · Blueprint read and write

EXTRA gap added to the footprint DIAMETER when spacing neighbours (UE world units, cm). 0 (the default) = footprints touch — the densest non-overlapping spacing; raise to open the square up. Also added to the gap between concentric layers.