On the page 66 is written: „Double-tap: If you have more than one camera, this switches between the cameras in your scene.”
I have added two cameras to the scene, but double tap doesn’t switch the view from one to another. It only resets the first camera. Any ideas how to change this?
Hi @mptaurus, could you show us how you are adding the two cameras? The book also mentions that double tapping will also resetting the camera so it sounds to me like the second camera might not be added correctly? Or maybe it’s in the same place?
The same is true (double tap is not working) when I create two or more cameras in “visual” way in scn. file
Actually it worked in previous Xcode version but after upgrading to 9 it disappeared.
The double tap feature is actually an undocumented feature, and it seems it’s now been removed. Apologies about that.
When your scene has more than one camera node in it, you can actually switch between multiple cameras views by setting the scnView.pointOfView = cameraNode (the camera node you want as the active view). This is actually explained in Chapter 7 of the book where the device orientation is changed from Portrait to Landscape mode.
So you can link the camera change to a double tap gesture event to achieve similar behaviour as before.