I'm trying to create a camera that the user can control using different gestures. I could use allowCameraControl, but i want to have a bit different controls than that. For example, If there is two fingers that go from the bottom of the screen to up slowly, the camera would rotate slowly around itself from watching down to watching up. How would i do this?
Asked
Active
Viewed 669 times
0
-
Possible duplicate of [Rotate SCNCamera node looking at an object around an imaginary sphere](http://stackoverflow.com/questions/25654772/rotate-scncamera-node-looking-at-an-object-around-an-imaginary-sphere) – Hal Mueller Mar 11 '17 at 01:57
-
this is not a duplicate – Reza Shirazian Apr 01 '17 at 23:02
1 Answers
0
- set allowCameraControl to false
- create cameraNode and add to rootNode
- add UIPanGestureRecognizer
- in you gesture handler, apply transformation to cameraNode // there is a velocity parameter in the handler that you can use // to apply changes to cameraNode
let me know if you need more information

medics
- 5
- 3