Lecture 2 Flashcards

1
Q

What is the dot product of a vector?

A

|a||b|cos(theta)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the cross product of a vector?

A

|a||b|sin(theta)n

where n = the unit vector perpendicular to the plane containing a and b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the dot product used for?

A

Determine the angle between two vectors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the cross product used for?

A

To determine the normal of a plane

To determine the vector to rotate around for torque eg. a tank turret

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Pitch is rotation around the ___ axis

Yaw is rotation around the ___ axis

Roll is rotation around the ___ axis

A

X
Y
Z

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does Quaternion.identity represent?

A

No rotation, perfectly aligned with world axes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why is GetButton used instead of GetKey usually?

A

Because it allows the user to remap controls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does GetAxis return?

A

float between -1 and 1 depending on the position of the control

How well did you know this?
1
Not at all
2
3
4
5
Perfectly