The Many Uses of SKConstraints
At WWDC 2014, SpriteKit introduced SKConstraints: a really nifty feature that is akin to LookAt constraints in SceneKit. There are three main types of constraints: rotation, distance, and position. Constraints consist of two pieces: its type and an SKRange designating how much leeway the constraint has.
Here’s a quick example that shows how to create a node (followerSprite) follow another node (leaderSprite):
Note that the constraints are applied after the physics simulation is run, which is great because the constraints will then always be followed. Here are links to the SKConstraint class reference and the SKRange class reference; there are multiple inits for each, so there is a lot of flexibility within. Ray Wenderlich has a great tutorial on inverse kinematics with constraints through the scene editor in Xcode – check it out if you’d like to learn more.