$ ./guess_the_languageGame Dev
Game Dev · medium · #89

What does a dot product of normalized vectors give?

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