# All Questions

1434 views

### Rotating a Group of Vectors

I am trying to rotate a group of vectors I sampled to the normal of a triangle If this was correct, the randomly sampled hemisphere would line up with the triangle. Currently I generate it on the Z-...
51548 views

### Finding quaternion representing the rotation from one vector to another

I have two vectors u and v. Is there a way of finding a quaternion representing the rotation from u to v?
2723 views

### Rotate GameObject over time

I a new here and i try to start working with Unity Engine. Could somebody explain me, how works Quaternion.Slerp? Because I want to rotate some object in different angles 90, 180 and 270. My code yo...
18069 views

### Component of a quaternion rotation around an axis

I'm having trouble finding any good information on this topic. Basically I want to find the component of a quaternion rotation, that is around a given axis (not necessarily X, Y or Z - any arbitrary u...
14875 views

### Using Quaternions for OpenGL Rotations

So I'm writing a program where objects move around spacesim-style, in order to learn how to move things smoothly through 3D space. After messing around with Euler angles a bit, it seems they aren't r...
30022 views

### Convert Quaternion rotation to rotation matrix?

Basically, given a quaterion (qx, qy, qz, qw)... How can i convert that to an OpenGL rotation matrix? I'm also interested in which matrix row is "Up", "Right", "Forward" etc... I have a camera rotat...
5959 views

### Orient object's rotation to a spline point tangent in THREE.JS

I am using SplineCurve3 to plot a line only on the X and Y axis, I have a cube successfully animating along this line by using spline.getPoint(t) where t is 0-1 in time. I am trying to orient the cube...
9294 views

### Using quaternion instead of roll, pitch and yaw to track device motion

Please bear with my long question, I am trying to make it as clear as possible. What i am trying to do is, get the attitude(roll pitch and yaw) when a picture is taken using camera and then save the ...