Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

IsNormalized Error

Discussion in 'Scripting' started by RaGEn, Sep 4, 2017.

  1. RaGEn

    RaGEn

    Joined:
    Feb 3, 2015
    Posts:
    88
    Hello

    I randomly get this error IsNormalized (ray.GetDirection ()) and IsNormalized (dir). I'm not sure what it means. And the error happens randomly so I can't figure out how to recreate it for problem solving. Anyone know what this error means or how to fix it? Or is it just a problem with the Unity Editor?

    Here's the code that's causing the error.

    Code (CSharp):
    1. if (Physics.Linecast (go.transform.position, transform.position, out hit, RaycastLayers) && go != null)
    2.             {
    3.                 BehindWall = true;
    4.             }
    5.             else
    6.             {
    7.                 BehindWall = false;
    8.             }

    Thank you for your time!
     
  2. RaGEn

    RaGEn

    Joined:
    Feb 3, 2015
    Posts:
    88
    Here's an image of the error too.
     

    Attached Files:

    • What.png
      What.png
      File size:
      651.8 KB
      Views:
      751