cocos2d-X中屏幕拾取,AABB检测

//获取queryPoint  ,第三个参是携带数据的

  getScene()->getPhysicsWorld()->queryPoint(CC_CALLBACK_3(HelloWorld::onPickupScene, this), touch->getLocation(),&Box);

//调用式

bool HelloWorld::onPickupScene(PhysicsWorld& world, PhysicsShape& shape, void*)
{
    log("666");

    return true;
}

猜你喜欢

转载自blog.csdn.net/piyixia/article/details/88750390
今日推荐