• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Collision Detection Issues

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,

Okay so basically my problem is with colliding objects with a ball, I'm pretty sure it's to do with my ordering in the flow of execution, although I'm sure I'll be quickly corrected as my assumption seems off. Basically, I'm adding a ball to a board and having it collide off the 4 walls of the game board (which it does) and also collide with the top line of an 'absorber' to basically stop the ball and end the game(which it does) however, when I add in square collision/circle collision it doesn't work until I comment out the code that calculates collision with the walls. I'm quite confused by this and was hoping someone could point me in the right direction to fixing this issue. Here is the code:

Any help at all will be massively appreciated.

Kind regards.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic