Polarith AI
1.8

◆ Spread

float Spread = 1f

Per default, this behaviour writes a value of 1 * SteeringBehaviour.MagnitudeMultiplier to the SteeringBehaviour.TargetObjective if the receptor is facing towards the percept's bounding box.

Otherwise, the value 0 is written. To have a smoother transition at the bounding box edges, the Spread can be increased, whereby a spread of 0 is the default and with a spread of 1, the outer vertices of the bounding box can be interpreted as independent obstacles (or interest objects). This results in the typical magnitude fan around the receptor, except the difference that everything pointing towards the bounds is still 1 * SteeringBehaviour.MagnitudeMultiplier.

Imprint