Search Unity

[Request For Help] newRotation doesn't work but newRotaion does somehow.

Discussion in 'Scripting' started by EvanGilbertCreations, Sep 17, 2014.

  1. EvanGilbertCreations

    EvanGilbertCreations

    Joined:
    Sep 4, 2014
    Posts:
    6
    As you saw from the title, yes, Rotation.

    Whenever I put in Rotation it causes errors, but Rotaion doesn't. What the hell?
    Line 53. This is what the code is so far.
    Untitled 2.jpg
    This is what happens when you check console.
    Untitled 3.jpg
    Then you put in newRotaion (which it actually suggests for some reason) and it works.
    Untitled.jpg
    Am I just unaware of this "newRotaion" or am I not crazy?
     
  2. Bethenal

    Bethenal

    Joined:
    Jul 12, 2013
    Posts:
    1
    In line 52, where newRotation is declared, it is currently written as Quaternion newRotaion, it should be Quaternion newRotation. Once you have amended that, you will need to make sure you adjust it everywhere that newRotaion exists.
     
  3. christinanorwood

    christinanorwood

    Joined:
    Aug 9, 2013
    Posts:
    402
    Or, as it's a variable of your own creation, you can call it whatever you like (within the naming rules)
     
  4. EvanGilbertCreations

    EvanGilbertCreations

    Joined:
    Sep 4, 2014
    Posts:
    6
    Wow, can't believe I missed that I named it that myself before. Thanks for all the help everyone.