Skip to content

Instantly share code, notes, and snippets.

@bertt
Created December 31, 2020 09:45
Show Gist options
  • Save bertt/60e93ead2ac7d47e4c77ea41795d82a6 to your computer and use it in GitHub Desktop.
Save bertt/60e93ead2ac7d47e4c77ea41795d82a6 to your computer and use it in GitHub Desktop.
CameraAngle iOS
frame.Camera.EulerAngles.Y * 180 / Math.PI
0 degrees: blue towards device, red to the right, green up
positive [0 - 180] turning to left
negative [0 - -180] turning to right
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment