update method

void update(
  1. double delta
)

Updates the AnimationState using the delta time given in seconds, applies the animation state to the Skeleton and updates the world transforms of the skeleton to calculate its current pose.

Implementation

void update(double delta) {
  if (_disposed) return;
  animationState.update(delta);
  animationState.apply(skeleton);
  skeleton.update(delta);
  skeleton.updateWorldTransform(Physics.update);
}