Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

easing uses start/diff, lerp uses start/end #77

Merged
merged 1 commit into from
Jul 12, 2016

Conversation

charlesgriffiths
Copy link
Contributor

What was meant for tick() is probably
var easedTime = _easeFunction( totalElapsedTime, 0, 1, _ownerTween.duration );
var value = Mathf.Lerp( _startValue, _startValue + _diffValue, easedTime );

but the equivalent form
var easedValue = _easeFunction( totalElapsedTime, _startValue, _diffValue, _ownerTween.duration );

is used elsewhere (FloatTweenProperty), and more succinct.

What was meant for tick() is probably
		var easedTime = _easeFunction( totalElapsedTime, 0, 1, _ownerTween.duration );
		var value = Mathf.Lerp( _startValue, _startValue + _diffValue, easedTime );
		
but  the equivalent form
		var easedValue = _easeFunction( totalElapsedTime, _startValue, _diffValue, _ownerTween.duration );
		
is used elsewhere (FloatTweenProperty), and more succinct.
@prime31 prime31 merged commit 9b12bed into prime31:master Jul 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants