Post

Replies

Boosts

Views

Activity

How to set defaultCameraController's point of view at SCNView instantiation?
Hello,I've got a `sceneView` of type SCNView that I create. It has this set like so: "sceneView.allowsCameraControl = true".Right after that I am trying to set the position like so:"sceneView.defaultCameraController.pointOfView?.simdPosition = [0.0, 0.0, 90.0]"However, there is no "pointOfView"!Where would be the optimal place to set this position? I have it working on a tap gesture recognizer that I use later, but I'd like to set it right after "pointOfView" exists so that when this view is created the proper view position for the user is set.
1
0
1.1k
Feb ’20