I have clouds of different sizes ( seen in the picture ) and im trying to give them a physics body automatically. But I just dont get how to do it. I have a player, its just something like a Ball so I could go for bodyWithCircleOfRadius.
I make it variable for every spawned cloud with this code :
SKSpriteNode * cloud = [SKSpriteNode spriteNodeWithImageNamed:@"wolke"];
float sizeScale = [self getRandomNumberBetween:0.2 to:0.5];
cloud.xScale = sizeScale;
cloud.yScale = sizeScale;
Now somehow I have to fit a PhysicsBody to it. Id be happy for any help. (maybe an oval or ellipse, but how to make the path variable to its size?)
Kind Regards