After upgrade to V3 RC, i got this errors:
auto contactListener = EventListenerPhysicsContact::create(); **contactListener->onContactBegin = CC_CALLBACK_2(StageScene::onContactBegin);**
ERROR: No viable overloaded ‘=’
Why i cannot use it more? Can anyone help me?
auto enemyBody = PhysicsBody::createBox(Size(enemy->getWidth(), enemy->getHeight())); enemyBody->setRotationEnable(false); enemyBody->setDynamic(false); enemyBody->setGravityEnable(false); enemy->setPhysicsBody(enemyBody);
Before update, with this code i move my objects manually and it generate Physic contact but is not affected by gravity. After update every object is going down What i do to continue moving it manually and generate contact event when collide using cocos2d-x RC v3 ?