Skip to content

Instantly share code, notes, and snippets.

@krijnrijshouwer
Created January 6, 2017 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krijnrijshouwer/5d9eb6c0eada8480700594abcf15c02e to your computer and use it in GitHub Desktop.
Save krijnrijshouwer/5d9eb6c0eada8480700594abcf15c02e to your computer and use it in GitHub Desktop.
How to - Line of sight
# direct access through property
heading = vr.heading
# continues updates
vr.on Events.OrientationDidChange, (data) ->
heading = data.heading
elevation = data.elevation
tilt = data.tilt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment