3

The beginContact callback function is being called for the bodies that are not colliding.

I have many bodies on the screen, all are far away from each other, but suddenly collision occurs and contact listener starts returning all the bodies on the screen but they are not actually colliding.

Can anyone solve this issue?

Mesop
  • 5,187
  • 4
  • 25
  • 42
Jawad Amjad
  • 2,532
  • 2
  • 29
  • 59

1 Answers1

4

I recomend you to change libraries to cocos2d-x, because cocos2d for android won't be updated anymore.

Cocos2d-x works in C++, and uses JNI (Java native interface) to work. Here is all the info you will need to start using it.

Community
  • 1
  • 1
vgonisanz
  • 11,831
  • 13
  • 78
  • 130