Sponsored By

Feature: 'Using Particle Swarm Optimization for Offline Training in a Racing Game'

In another of today's main Gamasutra features, I-Imagine developer Etienne de Villiers discusses how he used the Particle Swarm Optimization algorithm to arrive at good v...

Simon Carless, Blogger

December 13, 2005

1 Min Read
Game Developer logo in a gray background | Game Developer

In another of today's main Gamasutra features, I-Imagine developer Etienne de Villiers discusses how he used the Particle Swarm Optimization algorithm to arrive at good values for the physics and AI parameters of his racing game. De Villiers explains of the concept: "Many contemporary games use a data-driven approach to control various aspects of a game. In a racing game, for example, an external file may be used to specify the values for various physics parameters of a vehicle, or the behavioral parameters of an AI opponent. Deciding on values for these parameters can be a difficult task, since a change made to one parameter value might affect several aspects of behavior. Although it is sometimes possible to calculate the ideal values mathematically, in most cases a trial and error approach needs to be used. In this article, I will discuss how we have used the Particle Swarm Optimization (PSO) algorithm to arrive at good values for [AI and physics]. The first part of this article provides a quick overview of function optimization. This is followed by a discussion of the PSO algorithm, after which I will show how we have used PSO within our racing game." You can now read the full Gamasutra feature on the subject, including more on suggested technical solutions for this potentially tricky problem (no registration required, please feel free to link to the article from external websites).

About the Author

Simon Carless

Blogger

Simon Carless is the founder of the GameDiscoverCo agency and creator of the popular GameDiscoverCo game discoverability newsletter. He consults with a number of PC/console publishers and developers, and was previously most known for his role helping to shape the Independent Games Festival and Game Developers Conference for many years.

He is also an investor and advisor to UK indie game publisher No More Robots (Descenders, Hypnospace Outlaw), a previous publisher and editor-in-chief at both Gamasutra and Game Developer magazine, and sits on the board of the Video Game History Foundation.

Daily news, dev blogs, and stories from Game Developer straight to your inbox

You May Also Like