Questions tagged [euler-angles]
The euler-angles tag has no usage guidance.
24
questions
1
vote
0answers
12 views
How to calculate local orientation of child relative to parent from only global positions?
I am trying visualize a human finger's pose with a 3D model in Three.js.
The 3D model is composed of 3 bones that represent the proximal, middle, and distal bones of the human finger, connected in ...
0
votes
1answer
16 views
Euler Angles of Any Great Circle from hit.point of a sphere
How do you get the Euler Angles of Euler Angles of Any Great Circle that surrounds the raycast hit.point of a sphere?
0
votes
0answers
21 views
Get direction vector of camera in voxel game
I am currently working on a Minecraft clone (a voxel game). The feature I'm working on is the ability to break blocks. I have a ray-casting/ray tracing algorithm for traversing the voxels, but the ...
-1
votes
1answer
52 views
What is the relationship between gimbals and Euler angles?
Through reading a lot of articles, I understand what gimbals are (at least I think so). And I know that Euler angles follow the rules of gimbals, but why?
Why do Euler angles comply with the rules of ...
0
votes
0answers
29 views
Rotating a cube with arrow keys
I have a list of rotations (on a cube in 3d space with the y-Axis pointing upwards, x-Axis pointing righthand and z-Axis pointing towards you) for example
+90 deg around x-Axis followed by
+90 deg ...
0
votes
1answer
36 views
Making a parent system with euler angles (gimbal lock problem)
I have a system where objects can be connected to each other - as the parent rotates the child objects will rotate too and child objects themself can rotate too. The system is already working, however,...
0
votes
0answers
48 views
Rotate around an axis function for euler angles representation
For a 3d game i need a function to rotate an euler representation around an arbitary axis by an angle.
For example an object is rotated with euler angles (0,90,0). Now the object should be rotated by ...
0
votes
1answer
283 views
Using Euler angles to rotate object 360 degrees
I'm trying to create script that rotates object in given axis by set amount of degrees.
That's my 2 core methods
...
2
votes
1answer
384 views
Euler angle and Quaternion conversion become weird when yaw is bigger than 90 degrees
I'm writing a camera which needs to change a quaternion to Euler angles than change them back, it only works when the yaw is less than 90 degrees, I wrote a example to check:
...
1
vote
1answer
790 views
GLM conversion from euler angles to quaternion and back does not hold
I am trying to convert the orientation of an OpenVR controller that I have stored as a glm::vec3 of Euler angles into a ...
0
votes
0answers
26 views
Unwanted rotations with transform.RotateAround
I didn't tough i would have issues with this, but unfortunatly I did. I have a Character (which is more a pile of cube) with a body, a empty GameObject for each leg attached to the body with a join ...
-1
votes
1answer
5k views
Convert 3D direction vectors to yaw/pitch/roll angles
I have the code below that takes a set of yaw, pitch, and roll rotation angles (in degrees), and populates forward, right, and up basis vectors to express this rotated orientation as a Cartesian ...
0
votes
1answer
1k 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
1answer
273 views
360 degree Shooting using Pythagoras problem Unity 2D C#
I have used pythagoras to give the bullet a velocity in the bullet class. Velocity is applied when Instantiated();
...
0
votes
1answer
567 views
How to check whether an angle lies within a specific negative to positive range?
I'm trying to develop a script that detects if an object's angles are tilting too much.
I am new to Unity, and I am sure this is not the best way to test an object's angles, but I am trying to learn ...
0
votes
1answer
70 views
How to change two rotation axes in Unity without affecting the third?
I have a GameObject in Unity and I need to change its X and Z rotation without doing anything with the Y, as that would mess up everything.
Note that this sets the Y rotation to 0 and I don't want ...
0
votes
1answer
190 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
0answers
44 views
How to apply constraints to limb movements of a 3D human model?
I'm animating a 3D human model using playcanvas game engine according to the quaternion data provided by IMU sensors. How can I limit the movements of the limbs of the human model to avoid unrealistic ...
2
votes
2answers
1k views
How to express and verify euler rotation limits in Unity
I need to find a way to set min and max angles for each Euler component and check whether transform.localEulerAngles falls within those limits.
My current code ...
2
votes
0answers
666 views
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
2answers
635 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 :
...
0
votes
0answers
31 views
Locking global Y rotation component of camera orientation
Question:
For research purposes, I'm trying to lock the global camera yaw in VR -- though, the "how" is more of a 3D math question and has little to do with VR. The user is in control of the ...
0
votes
2answers
1k views
Gravity vector and forward vector to local heading (yaw), pitch and roll
I've looked around for hours and I simply don't get it. I am the first to admit I am severely lacking in mathematics. So please, keep it simple.
I am trying to get a vectors rotation (angle) around ...
0
votes
2answers
507 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 ...