update method

dynamic update(
  1. 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;
}