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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -