# All Questions

**3**

votes

**1**answers

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-...

**74**

votes

**6**answers

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?

**2**

votes

**2**answers

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...

**30**

votes

**3**answers

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...

**14**

votes

**2**answers

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...

**14**

votes

**4**answers

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...

**5**

votes

**1**answers

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...

**7**

votes

**2**answers

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 ...

**19**

votes

**2**answers

25186 views

### 'Difference' between two quaternions

I'm working in Ogre, but it's a general quaternion problem.
I have an object, to which I apply a rotation quaternion Q1 initially. Later, I want to make it as if I initially rotated the object by a d...

**1**

votes

**1**answers

138 views

### How to enable gyroscope camera at current device orientation

I would like to enable gyro controlled camera onButtonClick event but I want it to start at the camera's current position. Currently when the gyro gets enabled it moves the camera off to a new positi...