


However, anyone with so much as a secondary-school maths education will be able to follow the collision detection explanations in this article. Unfortunately, there’s often no avoiding the mathematics behind collision detection. This is a decision that is not made lightly, since it can drastically affect both gameplay and performance of your game. So there comes a time in almost every game’s development cycle when an important choice needs to be made: how accurate should the collision detection be, and which method should be used to achieve that accuracy. Whether it’s simply to prevent the player character from walking through the walls of your maze with a simple collision grid array, or if it’s to test if any of the hundreds of projectiles fired by a boss character in a top-down shoot-’em-up have struck the player’s ship, your game will likely require a collision detection system of one sort or another. This article originally appeared in Dev.Mag Issue 28, released in January 2009.Īlmost every video game needs to respond to objects touching each other in some sense, a practice commonly known as collision detection. – Feb 03, 12:23 PMġ3 Apr, 2009 in Development / Mathematics / Programming tagged collision detection / explanation / issue28 / math / tutorial by Claudio de Sa

