Skip to main content

Ticker

Ticker

Simulation tick generator Dispatches "tick" every animation frame or "maxDelay" time, whichever happens to be soonest This is essentially the timing bus that all the simulation systems subscribe to for their step advancement

Kind: global class

ticker.clock : Clock

Kind: instance property of Ticker
Read only: true

ticker.onTick : Signal.<number>

Dispatches time delta in seconds since last tick

Kind: instance property of Ticker
Read only: true

ticker.callbacks

Deprecated

Kind: instance property of Ticker

ticker.subscribe(callback, [thisArg])

Deprecated

Kind: instance method of Ticker

ParamType
callbackfunction
[thisArg]*

ticker.unsubscribe(callback, [thisArg])

Deprecated

Kind: instance method of Ticker

ParamType
callbackfunction
[thisArg]*

ticker.start([maxTimeout])

Kind: instance method of Ticker

ParamType
[maxTimeout]number