public GVRAnimation setDuration ( float start , float end ) { if ( start > end || start < 0 || end > mDuration ) { throw new IllegalArgumentException ( "start and end values are wrong" ) ; } animationOffset = start ; mDuration = end - start ; return this ; }
Sets the duration for the animation to be played .