Presentation is loading. Please wait.

Presentation is loading. Please wait.

Enumerations, Clamping, Vectors

Similar presentations


Presentation on theme: "Enumerations, Clamping, Vectors"— Presentation transcript:

1 Enumerations, Clamping, Vectors
Unity Notes Enumerations, Clamping, Vectors

2 Vector Arithmetic

3 Vector Arithmetic

4 Vector Dot Product Gives a scalar
Directly related to the cosine between the vectors If A & B are perpendicular, then A*B = 0 If B is a Unit Vector (Normalized) then A*B gives the length that A moves in B’s direction

5 Vector Cross Product Gives a perpendicular vector to the first 2

6 Clamping Keep a value in a specific range int x = Mathf.Clamp(x,1,3);
vector = Vector3.ClampMagnitude(vector, maxMagnitude);


Download ppt "Enumerations, Clamping, Vectors"

Similar presentations


Ads by Google