mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Cesium's camera measures each of heading, pitch and roll by moving the camera into the eye's east-north-up frame and back, recomputing its matrices twice each time. In 3D the pose now reads that frame once, takes the eye's direction and up into it as Cesium's inverse transformation does, and puts them through Cesium's own formulas: the same heading, pitch and roll to the last bit or so, and the camera is left as it was. Other modes still ask Cesium. The camera's matrices are copied straight into their arrays.