Skip to content

Commit

Permalink
Fixed Exponential easeOut.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriks committed Nov 9, 2011
1 parent 5a03ee7 commit 77404ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Plugins/UIToolkit/UIAnimation/Easing.cs
Expand Up @@ -107,7 +107,7 @@ public static float easeIn( float t )

public static float easeOut( float t )
{
return ( Mathf.Pow( 2, -10 * t ) + 1 ) * -1;
return 1 - Mathf.Pow( 2, -10 * t );
}


Expand All @@ -116,7 +116,7 @@ public static float easeInOut( float t )
if( t <= 0.5f )
return Exponential.easeIn( t * 2 ) / 2;
else
return ( Exponential.easeOut( ( t - 0.5f ) * 2.0f ) / 2 ) + 0.5f;
return Exponential.easeOut( t * 2 - 1 ) / 2 + 0.5f;
}
}

Expand Down

0 comments on commit 77404ae

Please sign in to comment.