Questions tagged [euler-angles]

The Euler angles are three angles introduced by Leonhard Euler to describe the 3D orientation of a rigid body.

The idea of Euler angles is to split the complete rotation of a cartesian coordinate system into three simpler rotations about the axes of this system. Euler angles also represent three composed rotations that move a reference frame to a given referred frame. This is equivalent to saying that any orientation can be achieved by composing three elemental rotations (rotations around a single axis), and also equivalent to saying that any rotation matrix can be decomposed as a product of three elemental rotation matrices.

475 questions
3
votes
1 answer

Convert 2 3D Points to Directional Vectors to Euler Angles

Here's essentially my problem. Also maybe I am not familiar enough with Euler angles and what I'm attempting to do is not possible. I have 2 points in 3d space. p1 (1,2,3) p2 (4,5,6) In order to get the unit vectors for these two points I'm doing…
joel1618
  • 353
  • 4
  • 11
3
votes
1 answer

How to determine the orientation / rotation of a triangle?

I'm using Emgu CV to find an isosceles triangle in an image, from this triangle that's been detected I'm attempting to determine the orientation (front, left, right, and back side) and what the rotation of the triangle is (ex: -30 degrees). I'm…
Sam W
  • 243
  • 3
  • 11
3
votes
1 answer

Rotation matrix to quaternion equivalence

I am tracking 3 points (3D, x y z) on a rigid body, which I use to define a local coordinate system. I am using this local coordinate system's orientation (in the global frame of reference) to set the view orientation in a VR program. To do this,…
3
votes
1 answer

Euler Angle Convention Transformation

I'm currently trying to display MoCap data from a Mocap-Suit in Unity 3D in realtime. The Suit SDK returns euler angles for each captured joint. I hoped that I could just take these Euler Angles and pass them to the appropriate joints in Unity by…
Averius
  • 165
  • 1
  • 2
  • 13
3
votes
2 answers

Convert euler angles between systems with different coordinate axis's (Unity and Threejs)

I am attempting to convert euler angle rotations between Unity and Threejs. There are two main issues with this. Problem 1: Unity and Threejs have different coordinate systems Unity: Threejs Problem 2: Unity does euler math in the order ZXY…
Matt
  • 177
  • 2
  • 13
3
votes
0 answers

Three.js reverse rotation

I'm placing Object3Ds in a scene with coordinates from an older Away3D project. The issue I'm having is when objects have a negative position.x (i.e. behind the camera), the rotation is opposite. I'm only using X and Z for tilt and spin. Is there a…
beek
  • 3,522
  • 8
  • 33
  • 86
3
votes
1 answer

Quaternion rotations, trying to rotate an object around his axis

I display caracters in Opengl, i have them rotate around axis with quaternions, what i want to achieve is make them rotate around their own axis but when using quaternions, if i rotate an object according to one axe, the others don't take in…
aze
  • 832
  • 4
  • 12
  • 34
3
votes
1 answer

Euler angles and Quaternion orientation

how to convert Quaternion orientation output of wintracker II device to Euler Angles output only. Because Wintracker II device Output Euler angles and Quaternion orientation. i want to Euler angles output only.
powerful
  • 61
  • 2
  • 8
3
votes
2 answers

3D relative angle sum calculation

I have a 3D object with rotation r1 in a quaternion form. I rotate it with local euler angles: transform.Rotate(new Vector3(0f, 15f, 0f), relativeTo: Space.Self); // right transform.Rotate(new Vector3(-10f, -5f, 0f), relativeTo: Space.Self); // left…
Vlad
  • 3,001
  • 1
  • 22
  • 52
3
votes
0 answers

JavaScript gl-matrix lib: how to get Euler angles from quat and quat from angles?

Is is possible using gl-matrix library? (Euler angles, I mean: pitch, yaw, roll) ( https://github.com/toji/gl-matrix ) Looked for in in command reference but found nothing useful. Another realization for JavaScript would be useful as well.
Dmitry
  • 543
  • 2
  • 5
  • 20
3
votes
1 answer

Yaw, Pitch and Roll to vectorDir and vectorUp

I have yaw, pitch and roll from an object and i need to transform it into vectorDir and vectorUp. Someone an idea of how to do it?
Hennaldo
  • 155
  • 6
3
votes
2 answers

Should Euler rotations be stored as three matrices or one matrix?

I am trying to create a simple matrix library in C++ that I will hopefully be able to use in game development afterwards. I have the basic implementation done, but I have just realized a problem with storing only one matrix per object: the rotation…
Jamie Syme
  • 528
  • 2
  • 6
  • 10
2
votes
0 answers

how to get the world y plane of the camera and [negate?] it

Im looking to set the value of y in the commented code cameraDir.y = 0; to be the y = 0 plane of the camera after q or e is pressed in if (input._keys.a) // if (input._keys.a) { _R.copy(this._params.camera.quaternion); if…
cubesareneat
  • 302
  • 2
  • 14
2
votes
1 answer

How to get Euler angles from two transforms in Godot

I have a Transform that is rotated by an angle on an axis. Is it possible to get the Euler angles for the rotation using the Transform before rotation and the Transform after rotation? I tried using Transform.basis.get_euler(), to get the Euler…
Joe
  • 345
  • 1
  • 14
2
votes
2 answers

Rotating Parent to Make Child Face Opposite Direction of Target's Forward

Scenario: Parent P1 has Child C1 Target exists All items' forward vectors face perfectly parallel to the X-Z Plane (pseudo 2D) Positions of all objects are arbitrary Child will never move on its own within Parent's space Goal: Rotate P1…