updateWorldTransform method

void updateWorldTransform()

Implementation

void updateWorldTransform() {
  final List<Updatable?> updateCacheReset = _updateCacheReset;
  final int n = updateCacheReset.length;
  for (int i = 0; i < n; i++) {
    final Bone bone = updateCacheReset[i] as Bone;
    bone
      ..ax = bone.x
      ..ay = bone.y
      ..arotation = bone.rotation
      ..ascaleX = bone.scaleX
      ..ascaleY = bone.scaleY
      ..ashearX = bone.shearX
      ..ashearY = bone.shearY
      ..appliedValid = true;
  }
  final List<Updatable> updateCache = _updateCache;
  final int nn = updateCache.length;
  for (int i = 0; i < nn; i++) {
    updateCache[i].update();
  }
}