Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


MindOfCorruption97

Member Since 28 Oct 2012
Offline Last Active Jun 19 2013 01:57 PM

#5069172 Collision Detection

Posted by MindOfCorruption97 on 12 June 2013 - 11:16 AM

I made a bounding box class if you want.

Just create a bounding box for the ball and the paddle and just check if they collide.

Here are the files:

http://www.mediafire.com/download/9pguyvnjdcucwpg/tools.h

http://www.mediafire.com/download/0csbj0c6cbljyka/tools.cpp

This only fixes the collision problem(hopefully). The bouncing problem I don't know how to fix...




PARTNERS