I try to bind SKShapeNode to CGPathGetCurrentPoint of my circle. But it seems that path is not moving.
CGPoint d;
...
myPath = CGPathCreateMutable();
CGPathAddArc(myPath, NULL, 0,0, 60, 10, M_PI*2, YES);
arc = [SKShapeNode node];
arc.path = myPath;
...
[self addChild:arc];
Here everything is OK. Then I connect my ball to the arc
ball = [SKShapeNode node];
ball.path = ballPath.CGPath;
[self addChild:ball];
...
d = CGPathGetCurrentPoint(arc.path);
ball.position = CGPointMake(d.x, d.y);
In touchesMoved
I placed rotating code for my arc
arc.zRotation+=angleRadians*4;
d = CGPathGetCurrentPoint(arc.path);
ball.position = CGPointMake(d.x, d.y);
And nothing happens. I want ball attach to arc current point and move with it.