问题
Please Help me, I have setup "allowsCameraControl = true" in Scene view. How to disabled some default functionality. Ex : Pan with two fingers to translate the camera on its local xy-plane
scnview.allowsCameraControl = true
scnview.defaultCameraController.interactionMode = .orbitTurntable
scnview.defaultCameraController.inertiaEnabled = true
scnview.defaultCameraController.maximumVerticalAngle = 69
scnview.defaultCameraController.minimumVerticalAngle = -69
scnview.autoenablesDefaultLighting = true
回答1:
Look at SCNCameraControlConfiguration (https://developer.apple.com/documentation/scenekit/scncameracontrolconfiguration)
It has some variables for controlling the default camera behavior. It particular there is a "allowsTranslation" variable that controls two finger panning.
That said, I've had mixed results using this to control the behavior.
来源:https://stackoverflow.com/questions/57476065/how-to-disabled-some-default-functionality-in-scene-view-when-allowscameracontro