[Closed] Unit-Length Vectors???
I’ve got it working and BOY does it make me happy to see these animations coming together in the sim.
I decided to go with the .transform.row1 or row2 or row3 property…mainly because I’m giving the user the ability to specify which axis to rotate along.
I thought about it a long while and decided on that because for example, a flight stick has one pivot, but rotates on two axes…z axis for roll (positive z is forward on the aircraft), and x axis for pitch. So I can add two modifiers to the stick and specify the same pivot helper for both of those modifiers using different parameters (to include which axis vector to rotate along)
It works as long as I START arranging the pivot with the Z axis pointing forwards (X -90)
Ok…I found out that the vector thing can be reversed…but I’m not sure how to reverse it.
If normalize object.transform.row3 is the normalized vector of the positive z axis of an object…whats the equivalent of the negative z axis? I’m kinda confused on this bit still.
Just add a negative sign!
a = normalize [1,2,3] --some normal vector
b = -a --the inverse of the same vector, pointing in the opposite direction.
In your case, if $.transform.row3 is the positive Z axis, -$.transform.row3 is the negative Z axis.
Thats like wayyyy too easy an answer bobo…WAYYY too easy…
I was looking for how to do that earlier with regular numbers and now I know. Thanks.