Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm working on a 3D game in Xna in which there is my jet which I am controlling. I want to add other jets as enemies. For that I need their AI so that I could have them able to target my jet. I've searched Google but couldn't find good resources. I hope professionals here can help me with my project.

share|improve this question
up vote 2 down vote accepted

Likely the simplest way to achieve this is to give your enemy jets some steering behavior. Particularly the a pursuit steering algorithm, with some avoidance Autonomous and follow behaviors tied in. There's an excellent paper on Steering Behaviors For Autonomous Characters. With it you'll be able to glean the information needed to implement steering in your own game. I recommend starting with basic pursuit steering and evolving it from there. Using an offset pursuit algorithm will ensure you don't have enemy airplanes kamikaze-ing into you. Something like this:

enter image description here

Where your plane is the center of the white circle.

You can see a live example of a similar behavior here. Also giving a enemy jet the flee behavior when they're targeted will make it a little more challenging to hit. (Have them flee from the firing cylinder that represents the kill zone in front of your plane)

share|improve this answer
Thankyou man! I'll look into it soon. – CoOlDud3 Dec 2 '12 at 16:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.