absoluteToLocal method

Vector2 absoluteToLocal(
  1. Vector2 point
)

Implementation

Vector2 absoluteToLocal(Vector2 point) {
  Renderer? ancestor = parent;

  while (ancestor != null) {
    if (ancestor is Actor) {
      return toLocal(ancestor.absoluteToLocal(point));
    }
    ancestor = ancestor.parent;
  }
  return toLocal(point);
}