Lecture 2 Flashcards
What is the dot product of a vector?
|a||b|cos(theta)
What is the cross product of a vector?
|a||b|sin(theta)n
where n = the unit vector perpendicular to the plane containing a and b
What is the dot product used for?
Determine the angle between two vectors
What is the cross product used for?
To determine the normal of a plane
To determine the vector to rotate around for torque eg. a tank turret
Pitch is rotation around the ___ axis
Yaw is rotation around the ___ axis
Roll is rotation around the ___ axis
X
Y
Z
What does Quaternion.identity represent?
No rotation, perfectly aligned with world axes
Why is GetButton used instead of GetKey usually?
Because it allows the user to remap controls
What does GetAxis return?
float between -1 and 1 depending on the position of the control