-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve "Gimbal Lock" problem by using Quaternion for rotation #3
Comments
Hey @craftercis , glad to hear you love it.
Please avoid having more than one
Disable / Enable |
Ah then I was confused by your screenshots haha.
So I should disable them at start, and when the gyroscope is fully loaded I would enable them again? |
What I want is the position of screenshot 1 (that's when it's lying on my table) when you hold the phone in your hands https://gamedev.stackexchange.com/questions/174107/unity-gyroscope-orientation-attitude-wrong Edit 2: Your demo scene has the same problem |
I believe you want to have just a single When the If you want to change standard behavior. For example, change the Origin data for a gyroscope somewhere in the middle of your app/game execution. You will need to Disable/Enable the |
Oh, that is a different issue. You are talking about Gimbal Lock issue. That is correct. It exists in this tool. Because it uses Euler space to do math operations. |
Is there a way for you to add this into your tool or should I look for another tool. Because for what I need this tool would be perfect |
I would be happy if you could do that in a dedicated pull request. I am a bit busy right now. In another case, I will do that, but can't say when for now. Edit: It should be a group of |
I can try. Can you give me a direction where I should start? Edit: I'm a bit neww to forking and editing open-source projects. I forked this project and cloned it to my laptop. But when I load it into Unity the package version is 1.2.6. That way I get 'Sirenix' errors that are solved in a higher version I saw. Edit 2: Fixed this issue. I had to remove the Scripting Define Symbols' from the player settings :D |
Hey Ivan, Sadly I couldn't fix the problem by myself. If you find the time, can you have a look at it? |
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
The text was updated successfully, but these errors were encountered: