Search Unity

Animation in wrong place

Discussion in 'Scripting' started by Buff, Apr 15, 2008.

  1. Buff

    Buff

    Joined:
    Mar 21, 2008
    Posts:
    131
    Hello,

    I have created an animation in maya. Its a simple 360 degree loop of an object. When I import this object in Unity, I place it in some other position. The issue comes when I hit "play". My object somehow moves back to the Maya-scene original position.

    I tried every option in the "import settings" tab. I also erased all unused keyframes in Maya (only leaving Rotation Y).

    Any ideas? Perhaps I need some scripting?

    Thanks
     
  2. Jonathan Czeck

    Jonathan Czeck

    Joined:
    Mar 17, 2005
    Posts:
    1,713
    Just parent the animated object to a blank GameObject and move the parent around instead.

    Cheers,
    -Jon
     
  3. Buff

    Buff

    Joined:
    Mar 21, 2008
    Posts:
    131
    Great! Thank you!
     
  4. Velketor

    Velketor

    Joined:
    Sep 15, 2007
    Posts:
    110
    hey, that definitely fixed my problem too...but...

    is there any way to fix this problem without having to create a bunch of extra duplicated objects? parenting is good and all...but that means TWO objects for every 1...and I'm guessing that would also eliminate it from the Terrain Editor :/

    Any ideas?

    Thanks!

    --Velk