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

Three.js Quaternion Rotation Not Applying Properly

I'm building an app that includes a rotation tool. I almost have it working but not quite. To give a visual, here's a screenshot: In the image, the red dot is the center point, the green dot forms the first line of the angle, and the blue dot…
0
votes
2 answers

How to get change in Yaw Angle / Put Global eulerAngles into Local space

I am making an aircraft game and I need to the get the change in Yaw of the aircraft. I am attempting to save the previous frame's transform.eulerAngles and push them back to local space of the transform so I can capture the change. I am trying…
0
votes
1 answer

How to get yaw degrees from transform in Unity?

I am making an aircraft game and I need to the get the Yaw of the aircraft. Below is working code to set pitch and roll but I can't quite figure out the yaw. private void _CalculateRollAndPitchAngles() { // Calculate roll & pitch angles //…
0
votes
1 answer

MATLAB STL 3D modelling from IMU Data

I am trying to upload an STL file to MATLAB and be able to manipulate it but can't find the best way to do it. What I am trying to do is import an STL a file of a hand tool and be able to rotate the 3D image by giving it roll, pitch and yaw angles.…
Ben Brown
  • 11
  • 2
0
votes
0 answers

OpenGL third person camera using quaternions

I'm trying to implement a third person camera in OpenGL. I'm able to get it to work without any problem using euler angles and basic trigonometry: float cameraDistance = 10.0f; float cameraPositionX = sin(targetRotation.y) * cameraDistance; float…
0
votes
1 answer

OpenCV:How to use the Euler angle to determine camera orientation

I got a question about how to use the EulerAngle to determine camera's orientation First, I used solvePnP function and got two output "rvec" and "tvec", then I use Rodrigues to convert rvec to rotation matrix "R". After that, I calculated EulerAngle…
V.Lee
  • 51
  • 1
  • 6
0
votes
1 answer

Problems rotating objects using eulers - quaternions

I'm having problems rotating GameObjects in my engine. I'm trying to rotate in 2 ways. I'm using MathGeoLib to calculate maths in the engine. First way: Rotates correctly around axis but if I want to rotate back, if I don't do it following the…
Tino Tano
  • 159
  • 1
  • 13
0
votes
2 answers

Transform EulerAngles Error

I have a condition that makes a check. Like this: if (moveDown) { Debug.Log("hit1"); if (RightTowers[rightIndex].transform.GetChild(2).transform.eulerAngles.z <= -40f) { moveDown = false; …
Sergiu A
  • 1
  • 1
0
votes
1 answer

Theta, Phi to Quaternion rotation Unity3D C#

I'm trying to rotate an object in the direction of a given angle that I have Theta & Phi values for. How does this apply when using something like Vector3 rayRotate = new Vector3 (theta, phi, 0); beamContainer.transform.rotation =…
0
votes
1 answer

How to minimise rotation checks of planar objects, while checking their parallelization with axes

I would like your help regarding rotations. Assuming we have a group of "n" planar surfaces within the following 3-dimensional system (image below), where the Red, Green and Blue planes are the xz, yz and xy Axes planes respectively. These planar…
Gouz
  • 336
  • 1
  • 6
  • 19
0
votes
1 answer

Random.Range GameObject Rotation

I want to do something and I don't even come out. I have a sprite. When I start I want it to be rotated to a random position of these (90f, -180f, -90f). for example give the start, its position is -90f on the z axis, or -180f, or 90f. I am a…
0
votes
1 answer

Bullet Physics - Angular factor doesn't apply

I'm currently using Bullet Physics to simulate physics in my world. Right now, I have a controllable player that can move with ApplyForce, but it does not have the ability to rotate, yet. However, I lock the angular movement to the Y axis (pitch),…
M Zeinstra
  • 1,931
  • 4
  • 17
  • 46
0
votes
2 answers

How to adjust euler angle by quaternion

I am looking for a way of returning an euler angle that has been rotated by a quaternion. I understand that extracting pitch roll and yaw from a quaternion is problematic at best, but if I could then I would simply add its values to my own in order…
Paul Spain
  • 517
  • 3
  • 15
0
votes
1 answer

Rodrigues Rotation of a set of points relative to a vector

I have a set of points, two of which I am using to designate my desired vector of rotation. For example, let: x1 = [1,1,1] x2 = [2,3,1] My desired rotation vector is: x2 - x1 = [1,2,0] I am then trying to rotate a series of 3D points relative to…
kalle
  • 425
  • 1
  • 6
  • 17
0
votes
1 answer

Get phone angle (pitch)

I really hope someone is able to help me: I am working on an Android App that displays the angle the phone is held I am using this code: protected void onCreate(Bundle savedInstanceState) { mSensorManager =…
user9821
  • 15
  • 6