How to control OpenGL projection matrix using iPhone accelerometer / compass values?

Is there a ready-made class / formula somewhere, can I use it to control my point of view with the XYZ accelerometer / compass?

I want to achieve the same control over the point of view as acrossair .

I have parts (OpenGL space, filtered acceleration, compass and cubic panoramic views mapped to a cube around my beginning).

Can someone tell me where to start at least?

+3
source share

Source: https://habr.com/ru/post/1749744/


All Articles