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

Match an object's rotation to that of another object's relative rotation

I tried posting this in the unity forums, but it's been stuck awaiting moderation, so I'm posting it here in hopes of getting some more immediate feedback. I have 4 objects, two planes and two arrows. One arrow points at one of the planes, and I…
Incognito
  • 189
  • 2
  • 10
1
vote
0 answers

Converting a vector from .stl to euler angles

(I already checked this, but as far as I understood, it does not relate to my problem due to the fact that planes angles are different from mine.) I'm writing a little piece of software in C++ for a little project I'm currently doing at a Stage in…
Alunduyn
  • 11
  • 2
1
vote
1 answer

OpenGL rotating object around global axis, pitch and roll

I have a problem with this openGL code: make3D(); GL11.glClear(GL11.GL_COLOR_BUFFER_BIT); GL11.glClearColor(0.5f, 0.55f, 0.55f, 1.0f); GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT); …
1
vote
1 answer

Controling OpenSceneGraph camera with Cartesian coordinates and Euler angles

I am attempting to control an osg::Camera with Cartesian coordinates (X, Y, Z) and Euler angles (Yaw, Pitch, Roll) that I read in from file. Part 1 For some reason setting my roll will cause the camera to rotate around the z-axis and not the y-axis…
ASxa86
  • 123
  • 10
1
vote
1 answer

LookAt Rotation Using Euler Axis Angles

I'm using the blender game engine and python I made a script that makes an empty follow my cursor in 3D space. (I use the keyboard for height for now). Now I wanted to implement a LookAt function for a general object rather than a camera, using…
user4907274
1
vote
1 answer

Calculating angles between two points in 3d space

I have two points (cube game object) in Unity, P1(x,y,z) and P2(x,y,z) and I have to set the MainCamera position and rotation along the vector between P2P1. I tried different methods but was not successful. All suggestions are welcomed. Thanks.
Majid Nasirinejad
  • 107
  • 1
  • 2
  • 13
1
vote
2 answers

Quaternion to EulerXYZ, how to differentiate the negative and positive quaternion

I've been trying to figure out the difference between these, and why ToEulerXYZ does not get the right rotation. Using MathGeoLib: axisX: x 0.80878228 float y -0.58810818 float z 0.00000000 float axisY: x 0.58811820 float y 0.80877501…
Mary Ellen Bench
  • 589
  • 1
  • 8
  • 28
1
vote
4 answers

3D Rotation of a pose around origin

I want to transform a pose around origin. The pose I have contains a position [x,y,z] and an orientation [x,y,z,w] represented as a quaternion. I have a 4x4 transformation matrix which I use to translate and rotate the position of the pose around…
Rouhollah
  • 325
  • 3
  • 11
1
vote
1 answer

Unity3d OnTriggerEnter collision direction detection

Okay, so I believe this concept should be simple. However, the answer is eluding me. Editor background. The "other" object and the gameObject with this code both have sphere colliders which are as triggers, this gameObject has a…
1
vote
1 answer

Unity3D relative rotation of objects on an axis

In the project I am using IMU sensors to track real player's hand and apply the transformation values onto 3D hand inside Unity. As IMU sets the Y axis orientation relative to magnetic north of the earth, in the game, hand initializes on specific…
1
vote
0 answers

Quaternions - Swapped axes and gimbal lock

I've been trying to get my head around quaternions in order to be able rotate objects in any ways, avoiding the popular gimbal lock problem. I have certain sensor readings which are Euler angles and I have to convert them to quaternions. Or rather…
ImQ009
  • 325
  • 4
  • 12
1
vote
0 answers

Third Person Camera Positioning

As part of my game i would like the user to be able to rotate the camera around the character. imagine the character is located at the centre of a sphere with radius r, and the camera is located somewhere on the surface of the sphere such that it is…
lufthansa747
  • 1,923
  • 3
  • 26
  • 39
1
vote
1 answer

How to properly clamp 360 degrees overlap?

I have a camera script where if my character is rotating, the camera rotates too. However, the camera can also be rotated my the mouse pointer. This movement is restricted by a specific set of given degrees, say 30 (maximumX). So the range of camera…
1
vote
1 answer

User controlled SceneKit object orbiting a sphere acts strangely at the poles

The user controls a snake moving on the surface of a sphere. I have the camera and the head of the snake attached to an imaginary sphere the same size as the visible one: headNode.addChildNode(cameraNode) controlNode.addChildNode(headNode) …
jctwood
  • 131
  • 1
  • 8
1
vote
0 answers

Quaternion to Euler angles conversion regarding rotation sequence

This is what I have: I have a Vector3D class that represents a vector or a point in 3D space. I have a Quaternion class that performs calculus on quaternions, and I can create a rotation unit quaternion from the Angle-Axis representation using a…
Jepessen
  • 11,744
  • 14
  • 82
  • 149