How can I rotate Node in SpriteKit around an arbitrary point?
I already have the answer βCreate a SKNode and set its position to the center of rotation. Add a Node that should rotate around this center as a child in the center of the node. Set the Node's child position (for example, radius, say x + 100). Change the property rotate the center of the Node so that the child node (s) rotates around the center point. The same thing works for cocos2d btw. "
But I really donβt understand how to write this in code :( I am starting very fast and it looks quite complicated. Can someone help me with the code?
source
share