Kongregate is a community-driven browser games portal with an open platform for all web games.
Get your games in front of thousands of users while monetizing through ads and virtual goods.
Learn more »
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.