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
1
vote
1 answer

Euler angles from a 2x2 ZYZ rotation matrix?

How I can find the euler angles from a random 2x2 ZYZ rotation matrix? We know that all SU(2) matrices can be decomposed, using the ZYZ decomposition, as a three matrices product based in euler angles. In the Wikipedia about euler angles: "A…
1
vote
1 answer

OpenGL camera orientation vector from model/view matrix

I'm making a little game in which I want to throw an object in direction I am facing. The problem is that my (camera) orientation is determined by model/view matrix. And this matrix is supplied by system (on android device). How can I compute vector…
sidon
  • 1,434
  • 1
  • 17
  • 30
1
vote
2 answers

How to obtain axis-angle from rotation matrix?

I need to obtain some data from an openGL rotation matrix. I need to obtain the equivalent euler angles (already did it), the equivalent quaternion (did it, but just copying it from the Internet) and the equivalent axis-angle. I dont know if a…
Alex
  • 1,449
  • 4
  • 18
  • 28
0
votes
1 answer

Determining axis of rotation from gyroscope when initial orientation is variable

An iPhone is held in front of you vertically (pitch is 90 degrees) with the screen either pointing toward your face, or with the screen pointed to one side of your face (so the iPhone is a sliver). It can also be somewhere inbetween. The iPhone then…
Albeit
  • 738
  • 10
  • 21
0
votes
1 answer

Getting a specific portion of rotation in Unity

I'm trying to implement gear physics using Unity, but I've encountered an issue. I've written the following code for one gear to follow another gear. Quaternion targetRot = Quaternion.Inverse(Quaternion.Euler(targetGear.RelativeRotation.eulerAngles…
0
votes
0 answers

Shoulder orientation tracking with azurekinect python

I am working on finding arm orientation with Azure Kinect body tracking. So I have been working on finding the orientation angles of the shoulder. I have used a rotation matrix which has 3 vectors ( shoulder to elbow, shoulder to clavicle, their…
0
votes
0 answers

Phone device inclination using Euler angles

I am trying to track the inclination of a phone device during motorcycle rides. As I am using Expo, I use the library expo-sensors and DeviceMotion. From DeviceMotion I get rotation as Euler angles which contains alpha, beta and gamma, as rotation…
michjea
  • 95
  • 6
0
votes
1 answer

Pendulum in Unity, sync with system clock (seconds)

I have to make a Pendulum sync with system time. It has to be right in the middle of the swing when the second ticks in the clock. I made this script, but its not sync.. it swings ok, but it depends on when I click play if its sync or not, and thats…
0
votes
0 answers

Computed Euler Angles are changing eventhough the phone was standing still

So i want to compute the euler angles and a rotation matrix to adjust the axis of the accelerometer. I am using the accelerometer (420 Hz), gyroscope (420 Hz) and magnetometer (100Hz) sensors of my phone. A Samsung Galaxy FE 21. The phone is just…
Yoshikuru
  • 1
  • 2
0
votes
0 answers

Reading rotation values, applying them to GameObjects in Unity and reading them back gives different results

I am creating a road editor in Unity. I have the data of each road segment that comes after another stored in a text file. It also includes 0-360° values for the segments rotation. For example, the road file describes a spiral by incrementing the…
0
votes
0 answers

Rotating the player beyond 360 degrees, 90 degrees at a time (Unity)?

So I am Somewhat new to coding (Started last year) so I might get a few things wrong or confused, I apologize preemptively. I am trying to rotate my player in the same way the game series "Etrian Odyssey" does it, by slowly rotating it towards the…
0
votes
1 answer

Problem with object rotation when using gyroscope in Unity

I use this code to track the movement of the gyroscope and rotate the object: Vector3 previousEulerAngles = transform.eulerAngles; Vector3 gyroInput = -Input.gyro.rotationRateUnbiased; Vector3 targetEulerAngles = previousEulerAngles +…
0
votes
0 answers

Lon Lat Yaw Pitch Roll conversion into VBS4 using the DIS protocol

I have the lon, lat yaw pitch roll of an aircraft which i need to forward into VBS using DIS to display the object. example data: Lon: 2.0445459 Lat: 12.4195886 Yaw: 180 (degree) Pitch: 0 Roll: 0 The input required using DIS Entity Orientation…
MC-spark
  • 11
  • 4
0
votes
2 answers

[SOLVED]Unity transform.rotation.eulerAngles doesn't work

[SOLVED]scroll down for answer. I'm creating a car game that controls with xbox one controller. this is steering wheel controller. my code is using System.Collections; using System.Collections.Generic; using UnityEngine; public class…
0
votes
0 answers

How to find the angle between two rotational quaternions?

I want to find out by much angle each quaternion is moving and if its rotating in the same direction ( clockwise / anti-clockwise) Right now, I am doing the following to calculate the rotation but I am not sure if its correct. def…