// we need to limit the orientation values // to be in the range (0 – 360)
Why not use Clamp here?
Oh, I see. This adds or removed 360. This is to account for what happens when the agent is rotated more than 360.
Share this highlighthttp://www.safaribooksonline.com/a/unity-5x-game/10557044/