There is an interface Vector3.Angle that calculates two vectors in unity, but the interface can only return 0-180 degrees, sometimes it is difficult to meet ...
DOWNLOAD: https://byltly.com/2fbupt
DOWNLOAD: https://byltly.com/2fbupt
unity-angle-between-two-vectors-360
This should be what you need. a and b are the vectors for which you want to calculate an angle, n would be the normal of your plane to .... My script needs to calculate the angle between these two vectors, but also include directional information - IE, go from -180 through 0 to 180 degrees, .... Apr 25, 2015 — Rotating between 2 extreme angles in Unity C# ... as if it was a Vector3, it's actually a four dimensional vector called a quaternion. 939c2ea5af
Comments