Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Animation Bug?

Discussion in 'Editor & General Support' started by Viking Dan, Jul 3, 2006.

  1. Viking Dan

    Viking Dan

    Joined:
    Dec 21, 2005
    Posts:
    52
    I have an animation clip which basically consists of the model doing a 360 turn about the y axis.

    I'd think it would spin 360 degrees from the angle the model is facing when I run the clip. Instead it, first makes the model face at 0 degrees and then spins it 360.

    Any idea why? Is this normal?
     
  2. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    It's how animations work (in pretty much every 3d package), they override properties they don't add on top of them.

    If you want to add on top of something just use parenting. You rotate the parent in any way and the child transform is animated.
     
  3. Morgan

    Morgan

    Joined:
    May 21, 2006
    Posts:
    1,223
    Or use transform.RotateAround, that's relative to the current rotation and will add to it.