画两个圆形cocos2d v3的物理体?

时间:2014-02-12 16:47:39

标签: cocos2d-iphone draw physics

我想在cocos2d v3中绘制Red onze Physics Body。形状有2个圆圈和穿孔。它是不可能的,如何通过代码来做到这一点?感谢

http://greenhornbold.com/wp-content/uploads/2013/01/RED-CIRCLE-2.jpg

1 个答案:

答案 0 :(得分:0)

这就是你要问的问题吗?

projectile.physicsBody = [CCPhysicsBody bodyWithCircleOfRadius:projectile.contentSize.width/2.0f andCenter:projectile.anchorPointInPoints];