Skip to main content

Questions tagged [euler-angles]

Euler angles used to represent orientation with 3 angles in a 3D space.

Filter by
Sorted by
Tagged with
1 vote
0 answers
54 views

Quaternion.Euler acting weird

so I'm building up a simple arcade racing game and I was messing around with the Wheel Colliders setup. I was wondering if it was possible to add some camber adjustments in real time depending on the ...
Danilolilo's user avatar
0 votes
2 answers
370 views

Why are Quaternions better than Euler-Angles for Godot (when to use which)?

Sorry about the click-bait, I know there are many many reasons why Quaternions and Bases are better than using Euler-Angles. Anyone on a 5 second google search could easily know why! But I am trying ...
ZenPyro's user avatar
1 vote
1 answer
2k views

How to clamp rotation on a specific axis?

I want to rotate an object based on mouse delta but I am unable to clamp it because I only want it to turn so far on a specific axis. ...
sad eggs and ham's user avatar
0 votes
1 answer
195 views

glm::eulerAngles gives unexpected output for quaternion

I used the euler->mat4->quat to give the right result, but euler->quat gives the wrong result - is there something I did wrong? ...
Zero Skyline's user avatar
0 votes
0 answers
46 views

How to calculate angles after subsequent rotations?

I have a class that manipulates a model matrix in opengl: ...
Aziz Hakberdiev's user avatar
0 votes
1 answer
1k views

Get object rotation around the x axis

I have an object which can be rotated at 0, 90, 180, 270 degrees. I am using this to get the rotation data: transform.eulerAngles.x However that code keeps ...
theCodeHermit's user avatar
1 vote
1 answer
1k views

Applying incremental rotation with quaternions: flickering or hesitating

I'm having a couple of problems while rotating an object every frame with GLM. First problem I'm trying to rotate the object with a small increase using quaternion multiplication. ...
Daniel Marques's user avatar
0 votes
1 answer
322 views

NVidia Physx get yaw pitch roll from rigid body orientation

I am using NVidia PhysX in the game that I'm developing and I stumbled upon a math problem. I need to retrieve Yaw, Pitch and Roll from the orientation quaternion stored in the rigid body of some ...
Mike F's user avatar
  • 103
0 votes
1 answer
470 views

Quaternions and Euler Angles

I have made a simple animation in blender where the object(Bone in this case) is rotated from 0 to 360 degrees within 40 keyframes I then exported that data(Each keyframe) to glTF which stores the ...
Suic's user avatar
  • 119
0 votes
0 answers
423 views

How can I make the character rotate slowly with the joystick?

I am using two Joysticks. One for the character's movement and rotation and the other for the character's rotation and shooting. On the joystick I use for movement and rotation, the character turns ...
gunza's user avatar
  • 13
0 votes
1 answer
420 views

Character rotation jitters when looking around

I want my character to walk around sphere like a planet, so in my script I rotate it according to the normal of a raycast and I also rotate my character on the Y axis when I look around with the mouse....
Samuel Fyckes's user avatar
0 votes
0 answers
205 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 ...
Ietpt123's user avatar
0 votes
1 answer
86 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?
ina's user avatar
  • 294
0 votes
0 answers
95 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 ...
Serket's user avatar
  • 101
-1 votes
1 answer
232 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 ...
zeng's user avatar
  • 1
0 votes
0 answers
132 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 ...
Jan's user avatar
  • 1
0 votes
1 answer
363 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,...
Chryfi's user avatar
  • 105
0 votes
0 answers
338 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 ...
Marion Piloo's user avatar
0 votes
1 answer
2k 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 ...
Solipsis's user avatar
3 votes
1 answer
2k 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: ...
ravenisadesk's user avatar
2 votes
1 answer
2k 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 ...
Vittorio Romeo's user avatar
0 votes
0 answers
32 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 ...
Samuel Fyckes's user avatar
0 votes
1 answer
12k 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 ...
DOLBOEB's user avatar
  • 21
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 ...
Atul's user avatar
  • 101
0 votes
1 answer
492 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(); ...
Lonchenzo's user avatar
0 votes
1 answer
1k 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 ...
loverman's user avatar
0 votes
1 answer
197 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 ...
Aditya Chandra's user avatar
0 votes
1 answer
361 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 ...
falordphil's user avatar
1 vote
0 answers
67 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 ...
wageesha's user avatar
2 votes
2 answers
2k 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 ...
Thomas Hilbert's user avatar
2 votes
0 answers
755 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 ...
Mohamed's user avatar
  • 141
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 : ...
EnhancedElegance's user avatar
0 votes
0 answers
43 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 ...
Drew's user avatar
  • 176
0 votes
2 answers
2k 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 ...
Cadde's user avatar
  • 129
1 vote
2 answers
604 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 ...
Narek's user avatar
  • 1,337