In my future game(in SpriteKit), I need to draw circle-like shapes. I use CGMutablePathRef
and SKShapeNode
for drawing itself.
On touchesEnded
I need to check if the user did close the circle or if there is a gap between start and end touches.
(Strictly saying, it can be not only the right circle, I need to detect any closed shape, e.g. loop...)
How can I do this checking?
[yourArray addObject:[NSValue valueWithCGPoint:yourPoint]];