step method

void step(
  1. double dt
)

Steps the motion forward by the specified time, typically there is no need to directly call this method.

Implementation

void step(double dt) {
  if (paused) {
    return;
  }

  for (int i = _motions.length - 1; i >= 0; i--) {
    Motion motion = _motions[i];
    motion.step(dt);

    if (motion._finished) {
      motion._added = false;
      _motions.removeAt(i);
    }
  }
}