update method
dynamic
update(
- dynamic deltaTime
Implementation
update(deltaTime) {
deltaTime *= timeScale;
var actions = _actions,
nActions = _nActiveActions,
time = this.time += deltaTime,
timeDirection = Math.sign(deltaTime),
accuIndex = _accuIndex ^= 1;
// run active actions
for (var i = 0; i != nActions; ++i) {
var action = actions[i];
action.update(time, deltaTime, timeDirection, accuIndex);
}
// update scene graph
var bindings = _bindings, nBindings = _nActiveBindings;
for (var i = 0; i != nBindings; ++i) {
var binding = bindings[i];
binding.apply(accuIndex);
}
return this;
}