News for hackers. Stuff that matters.
Re:Modeling Physics in Javascript: Gravity and Drag by bkanber on Saturday September 08, 2012 @02:35PM (#4493600)
Look into quadtrees, that's a good way to do collision detection in 2d. Or just partition your world into a fixed grid and only consider collisions with objects in the same grid square. Quadtrees are just a smarter way of doing that.

There are no comments on this comment yet.