关于Cocos2d-x中多边形物理刚体的设置

1.若是想要设置某个物体有多边形的刚体,这样能够更精确地进行碰撞检测,能够用如下的方法数组   auto hero = PlaneHero::create(); addChild(hero, 0, HERO_TAG); hero->setPosition(Vec2(winSize.width / 2, hero->getContentSize().height / 2 + 10)); //auto
相关文章
相关标签/搜索