Steering Behaviours
- If you know the agent's location (A), and where it wants to go (D),
you can calculate a normalized velocity vector to D.
- To get from A to D, if you're moving, you can't just point to D and
accelerate there ignoring your current velocity.
- What you want to do is steer current velocity (CV) so that it
goes to D.
- If you take D-CV, that's where you want to steer.
- Point the agent in that direction, and accelerate.
- If you know the agents velocity (CV), you can pick
an arbitrary speed (that the agent can manage including for
example length of CV or current speed), and get the agent's
desired velocity.