Skip to content

Sein Avoidance

Class · USeinAvoidance : UObject

#include "Avoidance/SeinAvoidance.h"

abstract: use a subclass

Steers movers around each other, as a service the movement modes call rather than a stage before them. Picked in the Movement settings as Avoidance Class; None turns avoidance off, and contacts alone keep bodies apart. One instance runs per match, and its properties are saved with the world.

Prepare runs once per tick, serially, after routes update: it sees every mover and may coordinate across them (right of way between groups, a density or flow field). Each mode then calls Resolve from its own step with its own limits, and is free to blend, override or skip the answer. Resolve may run in parallel: it reads only the snapshot, what Prepare built and immutable data, and writes only state kept for the asking mover.

C++ members (2)
  • void Prepare(const FSeinMovementSnapshot& Snapshot, FFixedPoint DeltaTime);
  • FSeinAvoidanceResult Resolve(const FSeinAvoidanceQuery& Query);