That tutorial is okay… it doesn’t really explain anything though, so that doesn’t help very much if your trying to understand the concepts behind it. But if you use that tutorial make sure you check if the distSquared < radiiSquared of the two balls, then take the square root of your distance once you know there’s a collision for added performance. And i believe several others have already gone over this topic quite thoroughly in other threads.
Hey, do you like games? So do we — that’s what makes Kongregate the best source of free games online. We have thousands upon thousands of free online games, from both one-man indies and large studios, rated and filtered so you can play the best of the best. Read more »