Is there a function I can use with unity or .NET or whatever that allows me to calculate the angle between two Vector2s?
Vector3.Angle (from : Vector3, to : Vector3) : float
(read this)
EDITED: Shame on me! You’re asking for a Vector2 operation, not Vector3!
But you’re a lucky guy: there’s a 2D version too:
Vector2.Angle (from:Vector2, to:Vector2): float;
(read this for 2D version)
You can do the following to calculate it:
Mathf.Acos( Vector3.Dot(vector1.normalized, vector2.normalized) );