This article was published for AiGameDev.com PREMIUM members, available by subscription. You can join here in a minute or less. If you're already a member, log-in from the top right menu.

Premium Teaser
DigInto_FlankingOpportunity

Dig Into AI: A Flanking Opportunity

Alex J. Champandard on November 28, 2013

This tutorial explains in detail how write AI to flank an enemy. It's a fascinating problem than involves terrain representation, analysis, and reasoning. Learn about the simplest tricks in the book, for example solutions based on vector algebra using known landmarks as reference points, as well as more advanced techniques too that involve multiple layers of single-source search and tactical pathfinding!