I\'m trying to rotate a player to the touch. Using the touches move function, I set the location to a variable. I then call a function. It works but the angle is off. Locati
Try something like this
//set sprite to image
Person = SKSpriteNode(imageNamed: "Person")
//set size
Person.size = CGSize(width: 40, height: 7)
//set position
Person.position = CGPoint(x: self.frame.width / 2, y: self.frame.height / 2 + 120)
//rotate node 3.14 / 2 = to 90 degree angle
Person.zRotation = 3.14 / 2
Person.zPosition = 2.0