我想在cocos2d v3中绘制Red onze Physics Body。形状有2个圆圈和穿孔。它是不可能的,如何通过代码来做到这一点?感谢
http://greenhornbold.com/wp-content/uploads/2013/01/RED-CIRCLE-2.jpg
答案 0 :(得分:0)
这就是你要问的问题吗?
projectile.physicsBody = [CCPhysicsBody bodyWithCircleOfRadius:projectile.contentSize.width/2.0f andCenter:projectile.anchorPointInPoints];