Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Smooth transitioning between animation

Discussion in 'Animation' started by PelvisParsley, Mar 25, 2017.

  1. PelvisParsley

    PelvisParsley

    Joined:
    Aug 9, 2016
    Posts:
    89
    Basically what Im trying to do is add a camera bob when moving forward. Im new to animation, never used state machines before only simple animations. I set up an idle state and one bobbing animation which is a loop. I made transistions between the two and made a trigger condition. Finally, I made a script that sets the trigger when a button is pressed.
    Now when I press this button in game, the animation takes a while to start. There is a lot of jitter in between making the animator not loop correctly. Also, the animation does not end when i stop pressing the button and completes the current cycle before ending. What exactly causes this? Ive tried researching but I cant find any explanation for this
     
  2. DavidGeoffroy

    DavidGeoffroy

    Unity Technologies

    Joined:
    Sep 9, 2014
    Posts:
    542
    Your transition has an exitTime. It won't take the transition until that time is hit. You can disable this in the transition settings; it's named "Has Exit Time"
     
    PelvisParsley likes this.