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. Dismiss Notice

Animation position jump

Discussion in 'Editor & General Support' started by ChrisBolton, Jul 21, 2009.

  1. ChrisBolton

    ChrisBolton

    Joined:
    Nov 19, 2008
    Posts:
    41
    Hi everyone, I'm having some issues with my tree..

    Basically i bake the 25 frame animation into the fbx file and import into unity, position my tree and then make sure the animation is set to loop. When i hit play, the tree jumps position and plays the animation, ive tried everything to stop it from moving to the unwanted location but can't figure out why.

    I was thinking that maybe when i baked the animation it baked a specific world point and jumps to it when i play the animation in unity regardless of where I put the tree. But not sure how to work around it!

    Any ideas?! help would be awesome.

    Kind regards Chris
     
  2. Deleted User

    Deleted User

    Guest

    Is the tree jumping to the exact same point in Unity or does it change if you move the tree inside Unity?

    Re-check your animation IMO :?
     
  3. antenna-tree

    antenna-tree

    Joined:
    Oct 30, 2005
    Posts:
    5,324
    You need to parent the tree to an Empty Game Object, while making sure the transforms are zeroed out first, and then move the parent to the desired location.
     
  4. ChrisBolton

    ChrisBolton

    Joined:
    Nov 19, 2008
    Posts:
    41
    Thanks! got it working :D
     
  5. Imran Khalil

    Imran Khalil

    Joined:
    Feb 6, 2013
    Posts:
    4
    I am having the same problem, I am newbie. I have a character with jump animation. and animations that move him left or right say x = -3 and x=3. When my character is at x=0 jumping animation work fine but when i play moveleft animation and then jump. the character moves to center.

    Any help!