Download presentation
Presentation is loading. Please wait.
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);
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.