Method AngleToVector2
AngleToVector2(float)
Converts the specified angle into a direction/heading vector.
public static Vector2 AngleToVector2(float angle)
Parameters
anglefloatThe angle to convert.
Returns
- Vector2
A normalised direction vector for the specified angle.