Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Vector3.Angle error

Discussion in 'Documentation' started by uncronopio, Nov 10, 2015.

  1. uncronopio


    Nov 8, 2015
    Hi all!

    In the description of Vector3.Angle, it is said "The angle returned is always the acute angle between the two vector (ie, the smaller of the two possible angles between them and never greater than 180 degrees)"

    I believe this is incorrect, because an acute angle is by definition always less than 90 degrees! That means Vector3.Angle between x and -x should yield 0 degrees instead of 180 (and 1 instead of 179 for close values).
  2. duck


    Unity Technologies

    Oct 21, 2008
    Thanks, well spotted. I'll change the wording to avoid the incorrect term!
    uncronopio likes this.