# Sprite orbiting on a point

I was wondering how to make a Sprite do an orbit on a determinated point in SpriteKit. I tried to set the anchorPoint of the Sprite orbiting with the center point but it doesn't work. Please can someone help me?

• When you say "orbit" do you mean travel a circular path around the centre point or do you mean follow a path around a centre point that is more controlled by things like gravity, mass, velocity etc. i.e. using celestial mechanics… – Craig Feb 14 '16 at 1:44

First, create an SKNode (your center node) and set its position to the center of the orbit. Next, add the SKSpriteNode that should be orbiting as child to the center node. Set the child node's position to the radius of the orbit ((0, 50) for a radius of 50).