0

In SCNScene, allowsCameraControl lets you move and rotate the camera, but when I "double-tap", the camera spins quickly and the object disappears.

I am reading the documentation, but I'm not sure how to disable double-tap.

ZGski
  • 2,398
  • 1
  • 21
  • 34
ichikuma
  • 23
  • 3

2 Answers2

2

SCNView is a subclass of UIView which has a property gestureRecognizers, an array of UIGestureRecognizers. You can loop through this array looking for the "double-tap" gesture. Once found, you can disable the gesture by setting isEnabled = false.

trout
  • 86
  • 2
-1

setting .autoSwitchToFreeCamera = false also seems to work

lazy var sceneView: SCNView = {
    let sv = SCNView()
    sv.allowsCameraControl = true
    sv.cameraControlConfiguration.autoSwitchToFreeCamera = false
    return sv
}()
tospig
  • 7,762
  • 14
  • 40
  • 79