public GVRAnimation setOffset ( float startOffset ) { if ( startOffset < 0 || startOffset > mDuration ) { throw new IllegalArgumentException ( "offset should not be either negative or greater than duration" ) ; } animationOffset = startOffset ; mDuration = mDuration - animationOffset ; return this ; }
Sets the offset for the animation .