I need to apply a quaternion rotation to many objects.
Thus, I have to apply a quaternion rotation to a 3 planes (x,y,z) matrix containing objects positions
I need to :
- convert the quaternion to a rotation matrix ( this helps http://www.euclideanspace.com/maths/geometry/rotations/conversions/quaternionToMatrix/index.htm)
- multiply the rotation matrix by each triplets x,y,z
Basically, I'd prefer to use only 1 jit.gen to calculate the rotation matrix, then I'll apply the rotation outside of gen world, multiplying the rotation matrix by the positions one.
How can I create the 3x3 rotation matrix using jit.gen ?
I have all the calculations ready etc, but I don't know how to wire stuff or objects to use to pop out .. a 3x3 matrix.
Anyone would help here?