Search Unity

Animation does not play relatively to the object position

Discussion in 'Animation' started by Jymmy097, Jan 25, 2015.

  1. Jymmy097

    Jymmy097

    Joined:
    Jul 7, 2014
    Posts:
    67
    Hi everybody,

    I have the scene setup seen in the video:
    http://snap.ashampoo.com/VWsoHv3y

    as you can see, the object is located in a position, but when I play the game, the object resets its position to 0.
    How can I avoid this behaviour and make the animation play relatively its initial position?

    I've attached the .blend file I used to create the model and the animation

    Thanks in advance.

    Jymmy097
     

    Attached Files:

  2. Rosie-Posie

    Rosie-Posie

    Joined:
    Nov 20, 2013
    Posts:
    54
    I don't have Blender unfortunately so I cant see how you set up your object, but did you try nesting in in an empty game object? that way you can move the top parent without the animation re-setting to zero. Also, what type of animation are you using? Legacy, generic?
     
    theANMATOR2b likes this.
  3. Jymmy097

    Jymmy097

    Joined:
    Jul 7, 2014
    Posts:
    67
    Hi,

    thanks for your reply. The type of the animation is Generix (it is controlled with an animator). And yes. I tried to nest it in an empty game object, it works, but I would like to avoid it. Now I'm writing with a tablet, but I am goingo to atta h the fbx version of the file...

    LG