Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exposing head orientation #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

CacheLine
Copy link

This change does two things to expose the head orientation parameters from the CBDViewController. First, it adds the eulerAngles() method to export results from the headTransform.eulerAngles() method. This makes it more convenient to pass orientation tracking information to Objective-C clients.
Second, this change adds offsetPan and offsetTilt properties, which are used to offset the view direction when vrModeEnabled is off. This makes it much easier for clients to add manual pan and tilt adjustment for devices that are not in a cardboard viewer.

CacheLine added 2 commits May 7, 2016 08:48
Add offsetPan, offsetTilt properties which apply additional rotation to
non-stereo mode. This allows manual navigation on a stationary device.

Add eulerAngles method to return the head transform pitch, yaw, and
roll angles.
Add offsetPan, offsetTilt properties which apply additional rotation to
non-stereo mode. This allows manual navigation on a stationary device.

Add eulerAngles method to return the head transform pitch, yaw, and
roll angles.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant