public boolean finish(GVRAnimationEngine engine) {
        if (mIsRunning) {
            stop(engine);
            getAnimation().animate(mTarget.getSceneObject(), 1);
            if (mOnFinish != null) {
                mOnFinish.finished((GVRAnimation) getAnimation());
            }
            return true;
        }
        return false;
    }
public boolean finish ( GVRAnimationEngine engine ) { if ( mIsRunning ) { stop ( engine ) ; getAnimation ( ) . animate ( mTarget . getSceneObject ( ) , 1 ) ; if ( mOnFinish != null ) { mOnFinish . finished ( ( GVRAnimation ) getAnimation ( ) ) ; } return true ; } return false ; }
If the animation is still running, stops the animation, runs the last
frame, and calls any {@linkplain #addOnFinish(OnFinish) registered}
{@linkplain OnFinish listeners}.

@param engine
The global animation engine.
@return {@code True} if the animation was running and finishing was
successful; {@code false} if the animation was not running.