Search Unity

Physics.Raycast: Parameters out of order

Discussion in 'Documentation' started by Nanako, Oct 21, 2014.

  1. Nanako

    Nanako

    Joined:
    Sep 24, 2014
    Posts:
    1,047
    The page:
    http://docs.unity3d.com/ScriptReference/Physics.Raycast.html

    Distance and Hitinfo are in the wrong order in the parameters list, and should swap places

    Fault 1:
    -------------------------------------------------------------------------------------

    -------------------------------------------------------------------------------------



    Fault 2:
    -------------------------------------------------------------------------------------
     
  2. Graham-Dunnett

    Graham-Dunnett

    Administrator

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    I think we have these kinds of problems in lots of places. We'll slowly deal with them over time.
     
    Nanako likes this.
  3. Docman

    Docman

    Unity Technologies

    Joined:
    Oct 19, 2012
    Posts:
    11
    I've fixed this case and it should appear in the next docs release. We are also looking into how we can stop problems like this occurring in the first place.
     
    Nanako likes this.