Game dev
Saved & recent

Steering behaviors

Related terms: seek, flee, arrive, pursue, obstacle avoidance, traffic simulation

Simple rules that produce lifelike movement by nudging a character's velocity every frame. Seek turns toward a target. Flee turns away. Arrive slows down on approach. Pursue aims at where the target will be.

Each rule outputs a small force. They are added up, capped and applied. No path is needed in open space. In corridors they are combined with pathfinding.

steering = desired velocity - current velocity

Further reading
Craig Reynolds: Steering Behaviors for Autonomous Characters
target current velocity desired velocity steering correction
The correction joins the current velocity tip to the desired velocity tip. Adding it to the current velocity aims the rover toward the target.

View in the full Game dev collection