Skip to content

Grid Formation

Class · USeinGridFormation : USeinFormation

Parent: Formation

#include "Formations/SeinGridFormation.h"

Arranges a selection into a tidy rectangular block when you order them to move. Units fill a square-ish grid of evenly spaced slots, centred on the click and rotated to face the direction of travel. Slots are spaced by Inter Unit Spacing (world units, cm) and projected onto walkable navigation, so nobody is placed inside a wall. Units then claim the nearest slot so their paths do not needlessly cross.

FFixedPoint InterUnitSpacing · default FFixedPoint::FromInt(150)

Editable in class defaults · Blueprint read and write

World-space spacing between units in the grid. Scale in UE world units (cm). 150 ≈ one infantryman’s personal-space radius.