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
0
votes
1 answer

How to rotate an rotation by an euler rotation in python?

What i want Input: non-normalized axis rotation Output: quaternion rotation, but additionally rotated by -90 degree y-axis (euler) What i have #!/usr/bin/env python3 #from math import radians, degrees, cos, sin, atan2, asin, pow, floor #import…
Sukombu
  • 157
  • 3
  • 12
0
votes
2 answers

Eliminating sign flips in quaternion data from sensors

I obtain sensor data from an AR headset, which outputs the user's head orientation as quaternions. When I inspected the raw data, I saw that there are several significant jumps in the consecutive quaternion samples, especially for qw and qy…
chronosynclastic
  • 1,585
  • 3
  • 19
  • 40
0
votes
1 answer

Euler angles -> 3D rotation matrix-> Euler angles with tensorflow-graphics

I'm trying to understand the transformation between euler angles and rotation matrix. Simulating random matrix of euler angles and the transformed them into 3D rotation matrix and back to euler angles do not preserve the original euler…
itamar kanter
  • 1,170
  • 3
  • 10
  • 25
0
votes
2 answers

Unity Aim Assist

i am creating a 3d top down shooter with unity and wanted to create an aim assist for it since hitting enemies is difficult. my idea was to create a trigger that slows down the rotation of the joystick on the weapon when the player aims at an enemy.…
0
votes
1 answer

Free Rotating Camera OpenGL

I'm trying to make a free orbiting camera for a spaceship game. I'm having some trouble with the rotations however. I started by using euler angles, but my implementation kept failing because of gimbal lock, which I want to avoid. I am now trying to…
ujjain
  • 9
  • 1
  • 4
0
votes
1 answer

How to get the y angle between 2 vectors in Three.js?

In Three.js I have 2 3d vectors and I want to find the x-axis and y-axis angle between them. For the x-axis I found this toDegrees(atan2(A.z, A.y) - atan2(B.z, B.y)) from The X angle between two 3D vectors? which works, but for y-axis, I am…
omega
  • 40,311
  • 81
  • 251
  • 474
0
votes
1 answer

Extract Euler rotation from matrix using Maya

I am trying to extract the rotation of an object based on these values: [ 0.00000000, 0.00000000, 0.00000000, 0.33333334, -0.53828228, 0.00000000, 0.66666669, -1.07656455, 0.00000000, 1.00000000, -1.61484683, 0.00000000 ] I am not quite sure how to…
Phil
  • 77
  • 3
0
votes
1 answer

Cube cannot do a full rotation on the Y axis in three.js

I have a low poly world and I added "gravity" with raycasting to my character. Now I need to add another raycaster in front of the character (in this case the pointer lock controls) pointing forwards (always in front of the camera and in facing the…
alon
  • 50
  • 7
0
votes
1 answer

I can not understand the extrinsic and intrinsic rotation order for `scipy` lib

After some research, for now, I understand scipy has right-handed axis coordinate system, and left-handed rotation. For example from scipy.spatial.transform import Rotation as R np.array([0,1,0]) @ R.from_euler("XYZ", [0,0,30],…
FavorMylikes
  • 1,182
  • 11
  • 20
0
votes
1 answer

Is there a better way to calculate the direction of a rolling ball in order to make the camera follow it?

Currently I'm using a normalized rb velocity to get the x and z velocity directions in order to compare it with eulerAngles of the camera in order to tell the camera which way to spin. But I'm doing this inside a bunch of nested if statements and…
0
votes
0 answers

Remove azimuth from quaternion

I have a Quaternion Q = new Quaternion( 0.342,-0.704,-0.431, 0.449) in earth coordinate system and I want to remove the Azimuth from it. I also have a function getGravityFromQuarternion(Quaternion, boolean) that gives me the Gravity pull vector on…
Herbert
  • 83
  • 1
  • 1
  • 6
0
votes
1 answer

3D rotation in Godot (GDScript) using Euler angles

I'm trying to create a 3D camera for a simulation game based on this video that shows how to do it in Unity. When translating the code to GDScript, I ran into a problem: I am unable to get the camera to rotate. Here is my GDScript interpretation of…
Looky1173
  • 440
  • 6
  • 17
0
votes
0 answers

Wiiuse library - how to calculate the quaternion from the wm->exp.mp.angle_rate_gyro like the DSU Controller test

I currently have the wiiuse lib op and running with the motion plus output the angle_rate from the gyro. Now i want this to give me the output in angles either euler representation or best of with quaternions, and i am a little stuck here. any …
Rasmus
  • 1
0
votes
1 answer

mpu6050&dmp and stm32h7 usage

I trying to use mpu6050 with dmp but how I can do that? I didn't find any source, any register or something like that. I have a stm32h7 right now but there is no library related to this or I didn't find again. please someone help me
0
votes
1 answer

Rotate quaternion and convert to euler angle

I'm trying to rotate a quaternion and convert it to Euler angle(for CSS) in javascript. Here is my general idea: ①Get quaternion in the current state. ②Calculate the rotate axis vector in local coordinate(e.g. for z-axis in local coordinate, just…
kdxcxs
  • 26
  • 5