July 9 - Vectors again

Today’s learning is all about vectors.

A new idea is left-handed vs. right-handed rotations: that is, how is the 3d axis oriented in the system. Unity uses a left-handed orientation; so that means: Z axis (“into the screen”) is +; Z axis (“out of the screen”) is -; Y “up” aka. forward is toward the top of the screen+; Y “down” aka reverse is toward the bottom of the screen-; and the X is standard Right +, Left -.

That means that any vector cross products that return a positive Z value (in 2D land right now) are going to be pointing into the screen space, and negatives are the reverse.

So far I haven’t run into many issues, because all the objects on the field are currently at the same Z axis position, so I’m eager to see if that changes if I stagger them in the editor.

DCDE Development - Vectors and Cross Products