Skip to content

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.

Properties

object:Object

The javascript object on which the tween is applied

interval:Integer

The amount in milliseconds between each step in the transition

totalSteps:Integer

The number of transformations that are to be done until the final result is achieved.

currentStep:Integer

The counter that tracks where we are in the transition

options:Object

An array containing the changes to be applied

effect:Function

The easing function used

callback:Function

The function to call once the tweening is done

Functions

step:Void

Description

Launches the next transformation

abort:Void

Stops the transition where it is