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

Line Casting: GameObject Face End Point of Ray

I'm trying to make the enemy object face the end of the line cast. The code I have locks the ray onto the player when detected properly. My problem here is that my enemy sprite is a grandchild of the Rigidbody2D and I'm using eulerAngles to change…
AntonioTorro
  • 199
  • 4
  • 20
0
votes
0 answers

Measure angle for swing motion

I have a pendulum and an IMU sensor that is capable to give me Euler angles and Quaternions. I want to attach the sensor on pendulum and measure θ angle around x axis from the starting position (see the following image). The problem is that the…
0
votes
2 answers

What is the tranformation of quaternions written below in code?

I have already ask this on code review, since this is a c++ code, which works, but they said it is better here. So I have some code which rotates a quaternion (orix, oriy, oriz, oriw) to another quaternion, but this rotation is written badly and…
gab
  • 165
  • 2
  • 8
0
votes
1 answer

How to clamp rotation on a vertical axis?

I am working on the object viewer like sketchfab in Unity and currently doing camera rotation using mouse. So far everything seems to work, but I would like to clamp the rotation on the vertical axis, but have some trouble accomplishing this. This…
0
votes
0 answers

Calculate Euler Angles out of CMRotationsmatrix

I am developing an app, in which I record the device orientation and position of the user. I tried to calculate the Euler Angels (pitch, roll & yaw) out of the Rotationmatrix given by CMAttitude. I was not able to do that. I already read how the…
greece57
  • 421
  • 1
  • 6
  • 16
0
votes
1 answer

Rotation around Z axis of world

I am trying to apply a rotation to fix the camera pose in my setup, since one of the axes seems to be off. I suspect this axis to be Z of "world" frame. In other words, I need to rotate "stereo_camera" frame around the Z axis of the "world frame" by…
Schütze
  • 1,044
  • 5
  • 28
  • 48
0
votes
0 answers

Is there any way to convert a vector to euler angle?

I have 2 vectors in 3D space, for example: If I know these 4 points, is there any method to find out the euler angles of them? I am trying to move these two vectors to the origin, then assuming these two vectors are rotated from two reference…
0
votes
1 answer

Rotate 3D object with Euler angles in Python

See this picture. In this the cuboid has to rotate along the other axes that were marked in the picture but it stays in the same axis x,y,zThe image attached gives the code of the cuboid. ##defining to plot the cuboid def plot_cuboid(center, size): …
0
votes
2 answers

Attitude estimation from accelerometer and gyroscope of an IMU?

I am having a hard time trying to understand the mathematical derivation of the equations I have included below. This piece of code is part of an example from a SparkFun IMU library that can be found here. Could someone please help me understand the…
0
votes
0 answers

Attempting to find pitch and yaw to turn to an object in 3d space

I have two 3d vectors containing position data for two objects within my game. One of the objects needs to turn its camera directly to the other based on the current positions (the setting of the pitch/yaw are absolute so realistically I can ignore…
harry
  • 53
  • 5
0
votes
1 answer

How can I see the total number of edges and/or Genus in an imported OBJ file using Meshlab?

Is there any way to see the total number of edges and/or the genus used in the euler number formula using MeshLab? (source: 80.lv)
Rex Buyeo
  • 13
  • 2
0
votes
0 answers

Calculate New Pitch and Roll after Z Offset

I have a subsea sensor which is pole mounted and rigidly attached to the side of a boat. The sensor reports pitch, roll and magnetic heading information with respect to an alignment mark on the front of the sensor. Unfortunately, we are finding that…
weblar83
  • 681
  • 11
  • 32
0
votes
0 answers

Can I store child game object's local axis and get it transformed to world axis at runtime?

I have a parent game object A, who has a child B, currently the use of B is just to get its world up axis (child.up) and world position (child.position) at runtime, apart from this they are of no use, so I decided to eliminate them by storing their…
Ashok Damani
  • 3,896
  • 4
  • 30
  • 48
0
votes
0 answers

Calculating the euler angles of a line relative to three axes

I have asked a question similar to this before but have since got further and also didn't tag the question right and wanted to get a bit of help on the maths around the question if possible. I have a 3D sphere with points evenly spaced on its…
j.t.2.4.6
  • 178
  • 1
  • 11
0
votes
1 answer

Unity3d Quaternion LookRotation not returning proper value

I wanted a projectile to look at the target object, to do that I am using Quaternion LookRotation as below targetRotation = Quaternion.LookRotation(targetPosition - projectile.transform.position); if(targetRotation.eulerAngles.magnitude <= 60) …
Ashok Damani
  • 3,896
  • 4
  • 30
  • 48