Sign in to follow this  
alwekyerp

AI Steering Tutorial

Recommended Posts

In an effort to give something back to the forum, I've created a bit of a tutorial on how to control an AI's steering. This is nothing revolutionary, but I had a tough time making it work, so I figured maybe others could benefit from my experience. The problem I had is trying to create an AI for a guided missile. I couldn't figure out how to get the missile to turn to face the target. I had the math for turning, but I didn't have the math to figure out how much steering force to apply at any particular time to make it so the missile would turn exactly to the target, without stopping too soon or turning too far. Over the years I had some "good enough" solutions in place, that either wiggled a bit or turned a bit slower then optimal or whatever. Now I have something that looks actually correct. This tutorial assumes you already have a physics engine in place, you're generally comfortable with the equations of motion, and you don't mind a little math. I hope someone out there finds it useful: http://riftspace.net/riftdev/2009/06/ai-steering-solution.html Comments and discussion are welcome. The clock is now ticking to see how long it will take someone to point out that there's a MUCH easier solution and I'm a dunce for going about it the hard way...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this