Create polygon from CCSprite?

43 Views Asked by At

Is there a way to create a polygon from a ccsprite? Such that I can then call

CCPhysicsBody(polygonFromPoints: <#UnsafeMutablePointer<CGPoint>#>, count: <#UInt#>, cornerRadius: <#CGFloat#>)

on said points?

1

There are 1 best solutions below

0
On

Have you tried or taken a look at the Physics Editor? You can use it to create your physics polygons using a visual tool. I used it quite a bit with cocos2d apps in the past.