float distance = directionVect.length();
MultiPurposeInterpolator interpolator = new MultiPurposeInterpolator(0, distance, interpolationDuration , accelerationEndTime, decelerationStartTime , 1);
Animation animation = new Animation("Tween translate of " + this.getName(), interpolator, this, triggerDelay);
animation.addAnimationListener(new TranslationAnimationListener(this, directionVect));
animation.setResetOnFinish(false);
animation.start();
return animation;
}
/**
* This private class acts as an AnimationListener for translation animations.