In Swift, I would like to calculate how much in percentages the red SKShapeNode is of the (blue) SKScene layer. Can't find methods for determining shape area. Is there a way to calculate the area of SKShapeNode?
Asked
Active
Viewed 117 times
0
-
not a great solution: make a physics body form the shape's path and use the `area` property – Nov 26 '14 at 18:12
-
http://stackoverflow.com/questions/451426/how-do-i-calculate-the-surface-area-of-a-2d-polygon – CodeSmile Nov 26 '14 at 19:26