tweenjs / es6-tween

ES6 version of tween.js
MIT License
186 stars 34 forks source link

Passive versus active source and destination settings #19

Closed mikebolt closed 7 years ago

mikebolt commented 7 years ago

There are two ways that a tween can respect the starting values: by only using the starting values when the tween started (passive), or by using the current values from the starting object (active).

I made an example that demonstrates the difference between passive and active in the source and destination objects: https://mikebolt.github.io/discuss/examples/active_tweens.html

I think we should add options for making the tween source-active and/or destination-active. The current default of passive/passive should remain the same.

dalisoft commented 7 years ago

I am not understand the feature, please explain bit more. source code too looks logically... EDIT: Now i see what you mean, but es6-tween support both

dalisoft commented 7 years ago

@mikebold maybe you can make PR for this?

mikebolt commented 7 years ago

Sure, I can work on this. I haven't looked at the source code for es6-tween yet.

dalisoft commented 7 years ago

It's now can be apply via method setActiveMode(). Commit hash https://github.com/tweenjs/es6-tween/commit/056f13ce816b255c46628670e7f6056e068eebab