O'Reilly logo

3D Game Development with Microsoft Silverlight 3 Beginner's Guide by Gastón C. Hillar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Applying Artificial Intelligence

In order to create competitive games, we must add some intelligence to the characters and we have to be able to detect collisions between them. An UFO has to be able to pursue a spaceship. A missile must be capable of chasing a plane. A cat must try to catch a mouse. The real things move using some intelligence. However, they also make mistakes. Hence, we have to add artificial intelligence (AI) to our characters.

In this chapter, we will add action to the scenes. By reading it and following the exercises we shall learn to:

  • Detect when two characters hit
  • Define specific behaviors when the characters collide
  • Use physics simulation to respond to collisions
  • Add chasing capabilities to characters
  • Add evasion ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required