Skip to content

Basic Avoidance

Class · USeinBasicAvoidance : USeinAvoidance

Parent: Sein Avoidance

#include "Avoidance/SeinBasicAvoidance.h"

The shipped avoidance. Friendly movers keep their spacing and pass bodies in their way, keeping one side until the body is behind them, and a group passes an oncoming group as one. Settled bodies hold still and are steered around. Each mover considers the nearest 8 friendly bodies it would collide with, within its radius plus theirs plus half a second of its travel; a body without a collider is not avoided. The steering fades out as a mover captures its destination.