Hello,
I got a behaviour I did not expect when I created my own contact listener.
I I create my class in the Main file, as specified in the tutorial http://www.iforce2d.net/b2dtut/collision-callbacks, No problem, everything works as expected. But I tried to create the same class in a separate MyCoontactListener.cpp and MyCollisionListener.h files, and I got a segfault error form b2Contact::update().
Is there a reason for this error but my beginners' skills?
Thanks,
LH
I got a behaviour I did not expect when I created my own contact listener.
I I create my class in the Main file, as specified in the tutorial http://www.iforce2d.net/b2dtut/collision-callbacks, No problem, everything works as expected. But I tried to create the same class in a separate MyCoontactListener.cpp and MyCollisionListener.h files, and I got a segfault error form b2Contact::update().
Is there a reason for this error but my beginners' skills?
Thanks,
LH