AI - Einführung, Suche & Exploration, Steering & Control, Path Finding  

Steering Algorithmen

Wie funktioniert der Steering Algorithmus Face?

1. Berechne Richtung zum Ziel
        d = target.pos - agent.pos
 
2. Wenn Agent am Ziel ist (|d| = 0) beende Face (success)
 
3. Bestimme Blickrichtung für Align
        τ ← target
        τ.ω = atan2(-d.x, d.y)
 
4. Delegiere an Align: Align(τ)

Diskussion