Cannon.Misc.TweenObject
y-lohse edited this page Jan 12, 2013
·
1 revision
TweenObjects cannot be created directly, they are only returned by calls to Cannon.Utils.Tween.create. They are just plain javascript objects. It's also probably a bad idea to mess around with those, as it might screw the tweening. The only thing you might consider doing is aborting them.
The javascript object on which the tween is applied
The amount in milliseconds between each step in the transition
The number of transformations that are to be done until the final result is achieved.
The counter that tracks where we are in the transition
An array containing the changes to be applied
The easing function used
The function to call once the tweening is done
Launches the next transformation
Stops the transition where it is