CardboardSDK-iOS icon indicating copy to clipboard operation
CardboardSDK-iOS copied to clipboard

Exposing head orientation

Open CacheLine opened this issue 9 years ago • 0 comments

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 avatar May 07 '16 07:05 CacheLine