Open sjbowen opened 7 years ago
This might help: https://github.com/adtile/Full-Tilt
I've built a FullTilt version of DeviceOrientationControlMethod in the development branch, and amended enableGyro() in index.js to set view according to device's yaw. Which works, sort of. Although the view does move to match device yaw, the value returned from FullTilt is not consistent.
Deviceorientation alpha (yaw) on iOS is not North (set to arbitrary value according to orientation when event first called). So, need some code to use webkitCompassHeading to adjust initial and subsequent views and/or reset iOS yaw to North.