Skip to content
RED SAGSkills
hard20 pts · first answer countsvector-mathdebugging

Angle between vectors is NaN

What does angle hold after this code runs?

Vector3 a = new Vector3(2f, 0f, 0f);
Vector3 b = new Vector3(1f, 0f, 0f);
float angle = Mathf.Acos(Vector3.Dot(a, b)) * Mathf.Rad2Deg;
Choose one answer