Unity-Gyroscope-Parallax icon indicating copy to clipboard operation
Unity-Gyroscope-Parallax copied to clipboard

Resolve "Gimbal Lock" problem by using Quaternion for rotation

Open craftercis opened this issue 5 months ago • 9 comments

I love this tool!

Just a quick question: In the first screenshot, that's how I want it to start when the user holds the phone vertically. Currently, it starts like in the second screenshot. When I place my mobile on a table, it looks like the first screenshot. Do you know how I can fix this?

If I have a Gyro rotator and a rotator attitude on this cube with a max offset of 30 on the Y. My phone starts at -30. I want this to be 0

Screenshot1 Screenshot2

craftercis avatar Jan 21 '24 15:01 craftercis