Skip to content

Exposing head orientation#27

Open
CacheLine wants to merge 2 commits intorsanchezsaez:masterfrom
CacheLine:master
Open

Exposing head orientation#27
CacheLine wants to merge 2 commits intorsanchezsaez:masterfrom
CacheLine:master

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