431

Creating interpolator behaviors
PathInterpolator class methods

  • Methods on PathInterpolator set the alpha generator to use and the "knots" used for the path
  • Knots are specific alpha values that correspond to specific positions, rotations, etc. along a path
  • Interpolation is done between knots, then mapped to the corresponding interpolated position, rotation, etc.
  • The subclasses of PathInterpolator add methods for specific types of path interpolators
  • Method
    PathInterpolator( Alpha alpha, float[] knots )
    void setKnot( int index, float knot )

  • Let's look at the various path interpolators . . . (and they too are pretty much all the same)