Solaro AI Asteroid Avoidance.

June 24th, 2010| Posted by slembcke
Categories: Development | Tags:


Up until now, the AI in Solaro has been pretty simple. It was basically always attacking, and had no concept of avoiding obstacles. Quite often the AI would simply repeatedly slam into asteroids like a fly trying to get out a window. Humorous yes, but it obviously won’t do for the final game. Today I was working on making the AI fly around the asteroids, and I’m pretty happy with the results.

There are 20 ships in that video taking random paths through an asteroid field without looking as though they were piloted by chimpanzees. The algorithm isn’t perfect. It doesn’t know how to avoid every collision, but it should be a nice building block to make more complicated behaviours from.

Comments are closed.