0

I want to lock user's ability to rotate view in all directions. I need model rotation only in left and right. How can i do this?

Arulkumar
  • 12,966
  • 14
  • 47
  • 68
Marriage
  • 501
  • 3
  • 15
  • you can take a look at http://stackoverflow.com/questions/25654772/rotate-scncamera-node-looking-at-an-object-around-an-imaginary-sphere and adapt it to your simpler case. – mnuages Dec 22 '15 at 10:26

1 Answers1

0

You can't use the .allowsCameraControl setting to achieve this restriction. You'll have to implement it yourself, as described in SCNCamera limit arcball rotation.

Community
  • 1
  • 1
Hal Mueller
  • 7,019
  • 2
  • 24
  • 42