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?
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?
Copyright © 2021 Jogjafile Inc.
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.