Can you help. Want to draw a polygon (beams at different angles) and apply box 2d body to it. Can you please let me know how to create a CCSprite with a polygon shape
Any examples would help
Cheers
Can you help. Want to draw a polygon (beams at different angles) and apply
Share
Create Polygon body.
Create your sprite
Attach your sprite to the Polygon body via Fixture and UserData
Then Iterate the sprite to the body in your update method.