Breakout clone, how to handle/design for collision detection/physics between objects?

Posted by Zolomon on Game Development See other posts from Game Development or by Zolomon
Published on 2011-02-01T17:24:47Z Indexed on 2011/02/01 23:35 UTC
Read the original article Hit count: 335

I'm working on a breakout clone, and I wish to create some realistic physics effects for collision - angles on the paddle should allow the ball to bounce, as well as doing curve balls etc. I could use per-pixel based collision detection, but then I thought it might be easier with line/circle intersection testing.

So, then I naturally consider making a polygon class for the line-based objects and use the built-in circle class for the circular objects. That sounds like an OK approach, right? And then just check for collision using the specified algorithm based on the objects that might be within each other's range?

© Game Development or respective owner

Related posts about physics

Related posts about collision-detection