ARKit Place a SCNNode facing the camera

前端 未结 6 2031
挽巷
挽巷 2021-02-02 00:15

I\'m using ARKit to display 3D objects. I managed to place the nodes in the real world in front of the user (aka the camera). But I don\'t manage to make them to fa

6条回答
  •  猫巷女王i
    2021-02-02 01:08

    guard let frame = self.sceneView.session.currentFrame else {
        return
    }
    node.eulerAngles.y = frame.camera.eulerAngles.y
    

提交回复
热议问题