Realistically I don't even know what I'm about to ask. I don't have the first clue how to describe this problem.
So, I have this static shape right
%s = new StaticShape()
{
datablock = WhateverStatic;
position = %pos;
rotation = %rot;
};
If I was to put in this for the rotation
rotation = "1 0 0 90";
It appears that it would rotate the shape 90 degrees on it's X axis. Makes sense... I think?
But when you do this:
rotation = "1 1 0 90";
What I would expect to happen is it to rotate 90 degrees on it's X axis and then 90 degrees on it's Y axis. But, it doesn't do that. It gives me some weird ass angle. I'm guessing that the first three values are going to be the x, y and z of a Vector, and then I guess it'll rotate the object around that vector's axis? This is a really interesting way of rotating something.
So, realistically, what I'd like to know is what is the steps to get from a directional vector, for example "0 0 1" which goes up, and convert it to Torque's rotation system with 4 values.