Cocos2d-x Box2d中實現剛體的移動

用觸摸實現剛體的移動,不管觸摸到屏幕哪裏再移動均可以this paddle = Sprite::create("block.png"); auto paddleBody = PhysicsBody::createBox(paddle->getContentSize(),PHYSICSBODY_MATERIAL_DEFAULT); paddleBody->getShape(0)->s
相關文章
相關標籤/搜索