I have scene.allowsControl = true. After scaling, rotating it. How can I reset it?
SCNView allowsCameraControl
Add a Comment
I have scene.allowsControl = true. After scaling, rotating it. How can I reset it?
Hello,
The "allowsCameraControl" controls for an SCNView are set up so that a double-tap on your scene will reset the camera.
or programatically,
//
var theView = SCNView // that you've set someplace earlier...
theView.pointOfView = yourCameraNode
//
It appears that as soon as you move the camera around,
the current camera gets copied to kSCNFreeViewCameraNameCamera
and that's the camera you're manipulating with allowsCameraControl.
So resetting the pointOfView sets things back.