c++ - cocos2d-x: can not create callback from onContactBegin -


i have problem collisions. use vs 2013 community edition , create oncontactbegin function this:

bool gamescene::oncontactbegin(cocos2d::physicscontact &contact) {     physicsbody* bodya = contact.getshapea()->getbody();     physicsbody* bodyb = contact.getshapeb()->getbody();     return true; } 

but when try create contact listener:

auto contactlistener = eventlistenerphysicscontact::create(); contactlistener->oncontactbegin = cc_callback_1(gamescene::oncontactbegin, this); _eventdispatcher->addeventlistenerwithscenegraphpriority(contactlistener, this); 

my precompiler starts cry on cc_callback_1 function:

no instance of overloaded function std::bind matches argument list

any help?


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -