Search Unity

How to create animation without affecting transform?

Discussion in 'Animation' started by ShyFang, Mar 7, 2019.

  1. ShyFang

    ShyFang

    Joined:
    Aug 18, 2016
    Posts:
    5
    Hi,

    I have a bird model that I animated to rotate 90 degrees on the z axis. So it's left wing is facing up and it's right wing is facing down.

    Before this animation it would move left and right on the x axis, but now it is moving up and down on the z axis. How do I continue moving on the x axis? I just want the animation to be purely aesthetic.
     
  2. McC1oud

    McC1oud

    Joined:
    Mar 14, 2015
    Posts:
    96
    Any pics you could share? Depends on how the animation was setup.
    Here's something you could try, dunno if it would work though: Stick the bird inside an empty gameobject and rotate that instead of the bird. Possible that the local transform might take over and allow the animation to play as originally intended.
     
  3. ShyFang

    ShyFang

    Joined:
    Aug 18, 2016
    Posts:
    5
    Hey McC1oud,

    The parenting the bird into an empty game object worked great. So I am using the game object now to move the bird but have the bird turn locally without it affecting the game object.
     
    McC1oud likes this.