Search Unity

Weird rotation animation behaviour.

Discussion in 'Animation' started by Grafer, Sep 8, 2016.

  1. Grafer

    Grafer

    Joined:
    May 30, 2015
    Posts:
    18
    Hello.
    First of all, I was searching for this answer everywhere. I knew somebody must have asked for this before me. But I couldn't find anything :( I've failed.

    I am trying to make simple gunshot animation, where gun goes slightly up and then to his root position. I've made 3 frames:
    1. root position
    2. rotation in z axis goes to "-5"
    3. root position

    But instead of little bump animation, it goes around. It looks like this -> https://i.gyazo.com/c04fdbd9533e607bf0b3c07725366f25.gif .

    What am I doing wrong?
     
  2. DavidGeoffroy

    DavidGeoffroy

    Unity Technologies

    Joined:
    Sep 9, 2014
    Posts:
    286
    What version are you using?
    Can you post a screenshot of your animation curves?
     
  3. Grafer

    Grafer

    Joined:
    May 30, 2015
    Posts:
    18
    I am using Unity 5.3.5f1
    And there're curves
     
  4. DavidGeoffroy

    DavidGeoffroy

    Unity Technologies

    Joined:
    Sep 9, 2014
    Posts:
    286