NuclearWinter > Animated Values

The Animation namespace contains a few classes to animate values
  • LerpValue does a simple linear interpolation from Start to End over the specified Duration
  • SmoothValue does a cubic interpolation from Start to End over the specified Duration

All you need to do is instantiate the class and call the Update() method on every frame.
Use the CurrentValue property to get the animated value at any time.

Last edited May 21, 2011 at 9:52 PM by elisee, version 1

Comments

No comments yet.