What does a dot product of normalized vectors give?
float d = Vector3.Dot(a.normalized, b.normalized);
- The cosine of the angle between them
- The distance separating both points
- A vector perpendicular to both
- The total length of both vectors
For unit vectors the dot product equals cos(theta), useful for facing checks.
Play Game Dev ▸