3

Table Of Contents
444 Chapter 5 Using Behaviors
Related Behaviors
Ramp,” “Rate
Creating a Decaying Oscillation
When you are oscillating an object’s rotation or position, a common effect is to decay
or dampen” the animation over time. This means that the animation gradually slows or
comes to a stop. You can achieve this effect using keyframes to slow the amplitude of
the oscillation.
To decay an oscillating rotation using keyframes:
1 Go to the frame where you want the animation to begin, then enable Record (press A).
2 Set the Amplitude value to the maximum value you want to use in your project.
Note: When Record is enabled, any value change to a parameter using the Inspector,
HUD, or Canvas creates a keyframe.
3 Go to the frame where you want the animation to come to a stop and set the
Amplitude value to 0.
When the object is selected, you can see the dampening of the animation—caused by
the keyframed Amplitude parameter—in the Keyframe Editor (when Animated is
chosen from the Show pop-up menu).