0

In my screen I am having some apples falling to the bottom randomly and I am having a basket at the bottom. I need to know when a collision of an apple and the basket is detected.

Can anyone suggest me how to do this collision detection?

Thanks to all,
Monish.

vikingosegundo
  • 52,040
  • 14
  • 137
  • 178
Monish Kumar
  • 2,788
  • 4
  • 38
  • 54

1 Answers1

2

You can use one of the ported physics engines, they generally give you an ability to detect collisions. For an example you can look here: Chipmunk Physics or Box2D for C++ 2D GameEngine?

Community
  • 1
  • 1
bealex
  • 10,004
  • 1
  • 21
  • 27