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 do I rotate a SCNNode around a point?

I have a SCNNode - sceneNode - which is a child of rootNode and contains all of my child nodes. Upon the user tapping a button, I want to rotate the scene around a certain point on the y-axis. For example, the camera's point of view is known, and I…
Andrew
  • 7,693
  • 11
  • 43
  • 81
0
votes
1 answer

Calculating Forward Vector Given Rotation in 3D

Given a Vector 3 of Euler Angles, how could one mathematically find the direction that object is facing. In other words, how does Unity calculate the 'transform.forward' vector?
0
votes
0 answers

Smoothly transition camera rotation from one coordinate system to another

I have a standard 3D player camera which can be rotated on the pitch and yaw axes, but not on the roll axis. The rotation order is yaw-pitch-roll. By default pitch rotates around the x-axis, yaw rotates around the y-axis and roll around the…
Silverlan
  • 2,783
  • 3
  • 31
  • 66
0
votes
1 answer

How to rotate a sphere along the three axis (x,y,z) simultaneously

I want to rotate an image along all the three axis in a way that all rotation will be taken in account at suitable order. Am using Three Js library and the rotation seems to work along one axis and with the three axis the rotation is abnormal. I…
0
votes
1 answer

Rotation matrix to Euler (c++11)

I'm using cv::Mat to create transformation matrix between landmark. I would like to get the euler angles from this mat but I'm not able to do it... my "data" (which are pure rotation on x, y or z axis) to test my function : float rotPIx[16] =…
0
votes
4 answers

Why does my directional light only rotate from 90º to -90º (Unity 5.5)

I have tried both of these C#scripts to rotate my directional light: using System.Collections; using UnityEngine; public class LightRotator : MonoBehaviour { void Update () { transform.rotation =…
Johnny Dollard
  • 708
  • 3
  • 11
  • 26
0
votes
2 answers

How do I change the rotation of a directional light? (C#, Unity 5.5)

I am trying to make my directional light rotate at a constant speed. This is the code that I have: using System.Collections; using UnityEngine; public class LightRotator : MonoBehaviour { void Update () { transform.rotation =…
Johnny Dollard
  • 708
  • 3
  • 11
  • 26
0
votes
0 answers

Euler Angle to Quaternion Conversion in Java

This is something what probably was asked before, but I could not find a working answer. I am trying to convert Euler angles into a quaternion (easier and faster calucations, no gimbel lock), but for some reason it does not work. I am using a…
Pyrphoros
  • 1
  • 2
0
votes
0 answers

Three.js object.rotation details

i read three.js docs about rotation so i know that three.js uses intrinsic (Tait-Bryan) ordering on Euler angles when applying rotation. Then as i remember they get converted to quaternions in the backend to prevent gimbal lock. My goal is to apply…
Ali Somay
  • 585
  • 8
  • 20
0
votes
1 answer

Rotation Interpolation Over Time

For this to keep it simple I'm going to be using Euler angles and degrees. Say I have an angle of 45 degrees. And I want to change the angle to 315 over time. This should take the shortest path to get the target angle. This the case above the…
0
votes
1 answer

Madgwick IMU 90 Degrees Angles

I'm using the C++ implementation of the Madgwick Algorithim, having my sensors (accelerometer, magnetometer and gyroscope) calibrated. Everything seems to work well, but when I put the sensor in vertical position (pitch to 90 degrees) the other…
user4739794
0
votes
0 answers

Wikitude: Redirecting Orientation Angles

I'm using Wikitude SDK, and I started from "3D Model at Geolocation" using "GeoLocation()" function (instead of RelativeLocation()), in order to visualize a specific 3D model in a specific GPS position. At this moment, AR registration works using…
0
votes
0 answers

How to estimate the pose of a object from the quaternion?

I have a quaternion which contains q0,q1,q2,q3 from this I need to estimate the pose of a object at a particular time t, could you please let me know how it can be done. quaternion(0.873117209569405, -2.27209068414177, -1.03476871647304,…
0
votes
0 answers

Rotation angles from Quaternion

I have a 3D scene in which in the imaginary sphere I position few objects, now I want to rotate them within device motion. I use spherical coordinate system and calculate position in sphere like below: x = ρ * sin⁡ϕ * cos⁡θ y = ρ * sin⁡ϕ *…
hbk
  • 10,908
  • 11
  • 91
  • 124
0
votes
1 answer

Interpolation between two keys makes are off after python importantion

I'm trying to import an animation from a file to Maya, but it gives me odd results between the interpolations: https://i.imgur.com/cP27Yai.mp4 It was weird because they keyframes looked right at first until i looked at the graph editor. thought…
Seyren Windsor
  • 115
  • 1
  • 2
  • 12