Polarith AI
1.8

◆ StartSteering()

override bool StartSteering ( )
protectedvirtualinherited

Sets the startDirection and startMagnitude accordingly to the position of the processed percept relative to the InnerRadius and OuterRadius of this behaviour.

In addition, it computes and pre-caches sqrInnerRadius and sqrOuterRadius.

All these pre-cached values might be accessed within SteeringBehaviour.PerceptSteering and SteeringBehaviour.ReceptorSteering for derived classes in order to ease further computations.

Returns
true: if the percept lies in between the InnerRadius and OuterRadius, false: otherwise.

Reimplemented from SteeringBehaviour.

Reimplemented in Avoid, PlanarAvoidBounds, PlanarSeekBounds, SeekBounds, SeekNavMesh, Pursue, Arrive, and Adjust.

Imprint