Method Angle
Angle(Vector3, Vector3)
Much more stable for small angles than Unity's native implementation
Declaration
public static float Angle(Vector3 v1, Vector3 v2)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | v1 | The first vector |
Vector3 | v2 | The second vector |
Returns
Type | Description |
---|---|
float | Angle between the vectors, in degrees |