I am currently integrating a VR application into native react using webgl and threejs. Everything works fine except for the function getOrientationController, of the library threejs.js, which is optimized to be used with the input parameters of the browser's orientation.
What I want is to do that function but using accelerometer, gyroscope and magnetometer from the react-native-sensors library.
Everything I have tried so far has not given an optimal result, namely: - integrate with react-360, which I have not achieved, besides needing to implement it in webviews - try to make my own bookstore, what I have achieved, but with a not very good result, a lot of noise and slow responses. - try to modify other found functions, with less optimal results too
Can someone give me some solution?
Thanks for everything, greetings