Linked Questions
49 questions linked to/from I'm rotating an object on two axes, so why does it keep twisting around the third axis?
0
votes
1
answer
3k
views
Order of rotation in Euler angles
I'm want to control the direction my camera looks, so I'm using Euler angles, so rotating around an axis is relative to rotation around previous axis. Something like this.
I want to always rotate ...
0
votes
2
answers
4k
views
Set rotation on single axis with provided angle using Quaternion
I am using a Quaternion to represent the rotation of some object, and I would like to allow the user to rotate it about a single axis at a time using textbox, so he would write the angle that the ...
2
votes
1
answer
3k
views
Unity: Particle System start rotation completely incorrect when set via C# script
I am trying to set the starting rotation of a particle system via c# script so that the particles orientate with another object in the scene. My particle system 3d rotation is set as follows:
...
1
vote
2
answers
2k
views
How can I separate gameview from UI most efficiently in Unity?
Let me provide an image to illustrate what I mean. It is from a game called Runescape.
0
votes
1
answer
1k
views
Does gimbal lock occur only when a combination of local and world rotation axis are used?
In all the explanations I've seen of gimbal lock, they always refer to the fact that when performing a series of rotations on all axes, it is possible that one rotation might end up aligning an axis ...
1
vote
2
answers
2k
views
3D Camera Rotation (Unwanted Roll) - Space/Flight Cam
I am working on a camera class that will have full range of motion (pitch, yaw, and roll). When only altering pitch and yaw, I am getting a large amount of roll.
I understand that the issue is ...
0
votes
2
answers
2k
views
Lock Z axis from the gyroscope rotation
Here's the code I use.
...
0
votes
2
answers
1k
views
Why does the pitch affect the x component of the front vector?
In every tutorial for implementing a camera in OpenGL, the front vector is calculated with something like this :
...
2
votes
1
answer
1k
views
How to make a concisely, elegantly, and human-friendly Quaternion camera?
I have spent three weeks struggling with the quaternion camera!
Now I have two Implementations. One has some kind of gimbal lock issue or something like that. Another one is totally anti-human ( I ...
1
vote
0
answers
2k
views
Transform.Rotate() rotation about one axis also rotates about the other axes [duplicate]
i'm new to learning unity and infact game development.Below i have setup a scene to learn about unity and i have encountered a strange problem that doesn't comply with anything that unity has ...
0
votes
2
answers
1k
views
Rotating camera in 3D without yawing diagonally
I'm programming a C raytracer. I'm having trouble getting the camera to rotate the way I intend.
I would like the camera to rotate by pressing keys:
F & H rotate left & right around the world'...
0
votes
1
answer
1k
views
Unity - Inaccurate rotation if object is rotated on two axis at once
I have an object which i want to rotate relative to world space. I have three variables (one for every axis) which store the rotation. By pressing buttons on my controller I add or subtract 90 to ...
0
votes
1
answer
947
views
Rotating a spaceship around 2 axes rotates it around 3
I am developing a 3D space shooter and I've found that when trying to rotate the ship using X and Y axes, it also rotates on the Z axis.
The answer here helped me a lot, but now when I try to rotate ...
0
votes
1
answer
1k
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 ...
1
vote
1
answer
840
views
Camera movement issue with pitch and yaw angles
I'm trying to implement a simple first person camera using pitch and yaw angles (no quaternions, I want a simple camera for debugging purposes). An Input class processes mouse input and translate the ...