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. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Question Animation transition doesn't work properly

Discussion in 'Animation' started by FabioGavinelli, Apr 26, 2022.

  1. FabioGavinelli

    FabioGavinelli

    Joined:
    Nov 24, 2018
    Posts:
    9
    Hi all,

    I'm struggling with this problem with animations. I created two very simple animations
    1) a single keyframe with a cube in a position
    2) the cube that roll and come back at the same position

    everything works fine in the animation but when I link them in the animator I have this strange behaviour where the cube stops in a different position.

    I tried to look online but I haven't being able to find anything. Does anyone know what is going on and what am I doing wrong?

    Single animation
    EightBall-Animation.gif

    Animations linked in animator
    EightBall-Animator.gif

    Animation transition options
    upload_2022-4-26_9-18-15.png
     
  2. Unrighteouss

    Unrighteouss

    Joined:
    Apr 24, 2018
    Posts:
    440
    Hello,

    It looks to me like the cube isn't in the same starting position for the two animations. If you look at your second gif, the cube changes positions when you swap animations. You're looking at rotation in the animated properties, but make sure the positions are the same as well.