I'd be surprised if steering behaviours / flocking wasn't involved somehow. It's just simple vector maths.
Not a member of The Register? Create a new account here.
Remember me on this computer? Post anonymously?