I need to spawn 4 new SKSpriteNodes
(independent not parented) at the corners of an existing sprite. Its pretty basic stuff but I am struggling to find the correct formula, I though I had it but its not working as expected. Could some either point me towards the correct formula or help me out with some guidance on calculating the 4 [x, y] pairs for any given rotation. Much appreciated.
- Move rotation center for each point to origin.
- xnew = x * cos(angle) - y * sin(angle)
- ynew = y * cos(angle) + x * sin(angle)
- Move rotation center for each point back to original position.