Linked Questions
14 questions linked to/from Component of a quaternion rotation around an axis
1
vote
2
answers
6k
views
Split quaternion into axis rotations
I have a quaternion representing the orientantion of an object (yellow box and sphere). I would like to know if it is possible to split that quaternion into other quaternions that give us the rotation ...
2
votes
1
answer
4k
views
Positioning a three.js object in front of the camera, but not tied to the camera, using webvr-boilerplate
I have an object3D which is invisible. I can freely look around by using the webvr-boilerplate. On click, I want to position this object3D in front of the camera, make it visible, but at a certain y ...
2
votes
3
answers
2k
views
Constrain pitch, yaw, & roll
I've a rotation represented as a quaternion and am trying to constrain the pitch, yaw, & roll axes. I tried doing so thusly:
public struct Orientation
{
public Vector3 up, forward;
...
1
vote
3
answers
3k
views
Converting 3D rotation to 2D rotation
I've been trying to figure out the 2D rotation value as seen from orthographic "top" view for a 3D object with XYZ rotation values in Maya. Maybe another way to ask this could be: I want to ...
1
vote
1
answer
2k
views
Move in the direction I am looking (webvr, three js, Oculus Rift)
In my animate() function I have the following code:
if (this.controls.forward) {
// move in direction we look at
var cameraDirectionVector = new THREE.Vector3(0, 0, -1);
...
1
vote
2
answers
3k
views
Java code to get rotation angle around an axis from quaternion
I am really struggeling to find the correct way to get the rotation angle around a single axis from an arbitrary quaternion. So other words I want to find the portion of the expressed rotation around ...
2
votes
1
answer
2k
views
How to isolate the x and z components of a quaternion rotation?
I can't comment other posts yet. ShawnFeatherly in this post wrote:
Here's a way to get the local rotation of just the y-axis. This function can be modified to get the x or z-axis.
/// <summary&...
0
votes
1
answer
1k
views
Resetting only one rotation axis
I would like to find a solution for taking a rotation represented as a matrix and then resetting one of it's components. Basically I want to be able to multiply a vector by this matrix and get a ...
0
votes
0
answers
1k
views
How to nullify rotation on an arbitrary axis in a quaternion?
I am attempting to disallow rotations around the y axis as is implemented in the 360 video here: at https://www.omnivirt.com/ on a mobile device. If you look on your mobile device and tilt the phone ...
0
votes
2
answers
1k
views
How to check if quaternion is rotated past defined degrees from level
I have a quaternion, q, and I need to determine if it is rotated beyond a certain number of degrees past level in both the X/Y axes. Any easy shortcut would obviously be to convert the quat to x/y/z ...
0
votes
0
answers
1k
views
Flatten a Quaternion Rotation into 3 Unit Axes Rotations
Hi I have an arbitrary rotation quaternion, which is constructed from a series of operations done by the user (they select the object, rotate it around the plane constructed from the camera view ...
0
votes
1
answer
923
views
2D values from Quaternion
i'm working in a AR application in android with the Epson Moverio BT-200.
I have a quaternion that change his values with my sensor fusion algorithm.
In my application i'm trying to move a 2D item ...
0
votes
0
answers
799
views
How to subtract component of quaternion along a given axis?
For example, to subtract out the component of a vector a along unit vector b, you just take the dot product of a and b and multiply by the vector b. Then you just subtract a•b*b from a to take out ...
0
votes
1
answer
284
views
Tibia angle from Quaternion on a plane, Euler Angles
I came to a situation on getting Tibia angles from an IMU.
The sensor is giving me quaternions and also Euler Angles (order XYZ).
I need to know based on a reference plane, the Z angle on plane XZ (...