Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Adjusting the Strength of an Animation

Discussion in 'Scripting' started by liquidgraph, Aug 24, 2009.

  1. liquidgraph

    liquidgraph

    Joined:
    Feb 26, 2009
    Posts:
    324
    I have a simple looping animation of a fish moving its tail back and forth. Is there a way I can subdue the animation so that the tail doesn't flap as widely when the fish is idle? And I like it to flap to full strength when the fish speeds forward.

    Basically, I want to take a looping animation and tell it to play at 10%, 20%, ... 100% strength. Is there a dynamic way to do this, without having to create individual animations for each strength level?

    Thanks, this one's had me puzzled for a while.
     
  2. Jessy

    Jessy

    Joined:
    Jun 7, 2007
    Posts:
    7,325
  3. liquidgraph

    liquidgraph

    Joined:
    Feb 26, 2009
    Posts:
    324
    Yeah, I'm aware of that page and am familiar with a handful of animation functions, but I just don't see how the pieces fit together to accomplish the effect.

    I thought animation.weight would work, but it doesn't seem to have any effect, or I'm using it incorrectly. Blend seems to be appropriate for combining two animations, but I'm talking about using one. If someone could give me a quickie example, that would help a lot!