Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question When I press play the animation moves to another place

Discussion in 'Animation' started by vargamihaly1986, Dec 1, 2021.

  1. vargamihaly1986

    vargamihaly1986

    Joined:
    Mar 15, 2020
    Posts:
    4
    Hello there. I am a 3D artist and I move some assets in unity I would like to create a game. I moved a windmill from the blender to unity. The propeller is animated. The problem when I play the animation it starts from another place. It simply spins empty in the background. Not in the same place.
    What could be the problem? 1.jpg 2.jpg 1.jpg 2.jpg
     
  2. 00christian00

    00christian00

    Joined:
    Jul 22, 2012
    Posts:
    1,035
    It has some keyframe on the position, remove them from the animation and only set the rotation keyframe.
     
  3. vargamihaly1986

    vargamihaly1986

    Joined:
    Mar 15, 2020
    Posts:
    4
    Hi Christian. Can you show me where I find that in transform? I'm new in unity.
     

    Attached Files:

    • 3.jpg
      3.jpg
      File size:
      1.5 MB
      Views:
      269
  4. vargamihaly1986

    vargamihaly1986

    Joined:
    Mar 15, 2020
    Posts:
    4
    Same thing when I delete the position in Transform. When I push play he start spin in another place.
     

    Attached Files:

    • 4.jpg
      4.jpg
      File size:
      1.4 MB
      Views:
      269
  5. vertexx

    vertexx

    Joined:
    Mar 18, 2014
    Posts:
    384
    Probably no help..but have you made the "propeller" a child of the main building?
    You know, in your Hierarchy window drag the propeller object to over the building object to make it a "child" of the main windmill building and then set/place the propeller position to where it should be. Then try it again. I couldn't tell with your links if you had already tried this? Anyway, good luck.
     
  6. Rensoburro_Taki

    Rensoburro_Taki

    Joined:
    Sep 2, 2011
    Posts:
    274
    Put all your animated objects in an empty, this overwrites the world-positions of your animated objects. You can simply move the parent then in all directions and all the children will think the parent is their universe ;)
     
  7. vargamihaly1986

    vargamihaly1986

    Joined:
    Mar 15, 2020
    Posts:
    4
    Thank you guys. I will try that
     
  8. intelcomtracker

    intelcomtracker

    Joined:
    Dec 10, 2021
    Posts:
    1
    Exactly i had same issue, but now what should i do?