Welcome to the Treehouse Community
Looking to learn something new?
Adam Smith2,437 Points
SWIFT: Physics bodies for irregular shapes in spritekit
I am creating an IOS app that requires me to create a physics body around a sprite node. this sprite node is not a regular polygon. how would I go about creating an irregular shaped physics body around this spritenode
Reed Carson8,306 Points
you can set your physicsbody to be equal to the texture provided. something like this:
physicsBody = SKPhysicsBody(texture: SKTexture, size: CGSize)