Keep node's X and Z axes parallel to ground while rotating Y axis to face camera
问题 I'm trying to keep an SCNNode always one meter away from the front of the camera, and manipulate the node so that the X and Z axes are always parallel to the ground, while the node rotates around the Y-axis so that the node is always facing the camera. The code below achieves my goal for the most part, but when turning more than 90˚ clockwise or counterclockwise, the node starts turning. How can I fix that? override func viewDidLoad() { super.viewDidLoad() boxParent.position = (sceneView