MasDennis/Rajawali — pull request #212 by aina-no-software (2012-11-01 19:16:31+00:00)
Title: Animation refactoring

Added start and length, one-liner animation constructors and a new stateless rotation animator class in order to allow chained animations. These changes all together allows the below, where a series of animations are executed under the same duration (8 s):

mAnim1 = new TranslateAnimation3D(object, path, 8000, 0, 2500, Animation3D.INFINITE, Animation3D.REVERSE, new AccelerateDecelerateInterpolator());
mAnim2 = new RotationAnimation3D(object, -90.0f, 0.0f, 0.0f, 8000, 2000, 1000, Animation3D.INFINITE, Animation3D.REVERSE, new AccelerateDecelerateInterpolator());
mAnim3 = new RotationAnimation3D(object, 0.0f, 0.0f, 180.0f, 8000, 1500, 1000, Animation3D.INFINITE, Animation3D.REVERSE, new AccelerateDecelerateInterpolator());
mAnim4 = new RotationAnimation3D(object, 360.0f, 0.0f, 0.0f, 8000, 5000, 1000, Animation3D.INFINITE, Animation3D.RESTART, new AccelerateDecelerateInterpolator());

In the example above mAnim2 and mAnim3 overlaps.