Questions tagged [gimbal-lock]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
84 views

How can I use a redundant axis of rotation to prevent gimbal-lock & calculate a position for that axis?

I have a theodolite-like device that is trying to track a point such that it's "Forward" is always facing that point. Here is a GIF of it working as of now. As expected, when the value of the Red ...
1
vote
1answer
96 views

Why use gimbals?

With all the gimbal lock problems, quaternions, and stuff like that - why do we even use gimbals for rotation? Why not use local rotation instead of gimbals?
2
votes
0answers
386 views

Solved OpenGL using quaternion to rotate camera to avoid gimbal lock [duplicate]

I read in many sources about using quaternion to avoid gimbal lock but I can't apply this practically in my code, so I have a camera class I want to rotate it with mouse so I have Euler angles Pitch ...
0
votes
1answer
722 views

Am I experiencing a gimbal lock problem when rotating my cube? [duplicate]

So I'm trying to build a simple mechanic where the player see's 3 sides of a cube at a time: top, left and front(I called the front-side "Right" in my code, due to the orthographic view). The player ...
0
votes
1answer
966 views

Unity 3D recreation of Pitch/Roll from accelerometer

I have an accelerometer that is communicating serially to a PC. As I read in the data, I filter it to clean it up and calculate the angle of the pitch and roll. This all works great. Then I want to ...
0
votes
2answers
952 views

Convert linear velocity to angular velocity for a ball / sphere (Rolling Ball Maths)

I have a ball moving on a flat plane. I cannot use RigidBody physics, so my object in Kinematic and I am manually handling speed/acceleration. The linear movement of the ball is fine, however as the ...
0
votes
2answers
448 views

How is a gimbal connected with Euler rotation angles?

When I see any video that explains how gimbal lock occurs, they explain it using a gimbal machine and I totally understand the effect on that machine. What I don't understand is how Euler angles are ...
5
votes
4answers
5k views

Do we really need quaternions? In UE4 I rotate without them

I want to experience gimbal lock to be able to understand how it happens. In lots of videos it shows that when you rotate along one axis, other axis is also being rotated and you obtain gimbal lock. ...
1
vote
1answer
482 views

Visualize quaternion euler angles without gimbal lock

I fusion ACC and GYRO data with Mahony algorithm, and then I want to show a line chart representing roll pitch and yaw to the user, so they can understand the degrees. As you can imagine, gimbal lock ...
2
votes
1answer
2k views

How to avoid gimbal lock in Unreal Engine (c++)?

I created an orbit camera (sometimes called turntable camera; similar to the one with the "use UE3 orbit controls" setting in a static mesh view). I attached the camera to a ...
2
votes
1answer
719 views

How to avoid Gimbal Lock on Rubik's Cube [duplicate]

I am making a Rubik's cube program. That will simulate a Rubik's cube. I am having problems with gimbal lock. I need to know how to avoid it. To my understanding I can either multiply the x, y, z ...
0
votes
1answer
416 views

Rotation with respect to world instead of the object itself using Quaternion.Euler in unity

[Other answers on similar questions on stackexchange didnt help] This script is giving some weird outputs On running this script If I press rightarrow once followed by 's' the object rotates on 'z' ...
12
votes
2answers
9k views

How is the gimbal locked problem solved using accumulative matrix transformations

I am reading the online "Learning Modern 3D Graphics Programming" book by Jason L. McKesson As of now, I am up to the gimbal lock problem and how to solve it using quaternions. However right here, ...
4
votes
2answers
6k views

Calculating up-vector to avoid gimbal lock using euler angles

I wish to orbit a camera around a sphere, yet the problem is that when the camera rotates so that it is at the north pole (and pointing down) or the south pole (and pointing up) of the sphere the ...
6
votes
3answers
1k views

Why is my model's scale changing after rotating it?

I have just started a simple flight simulator and have implemented Roll and pitch. In the beginning, testing went very well; however, after about 15-20 seconds of constantly moving the thumbsticks in ...
1
vote
2answers
644 views

Linear Interpolation Causing Gimbal Lock?

I have created an object movement path in a 3D authoring application. Then, I exported the path (100 frames) into my custom text file in the form of Euler Angles. The next point was loading the ...