toLocal method
      
Vector2
toLocal(
    
- Vector2 point
inherited
    Transform point from the parent's coordinate space into the local
coordinates. This function is the inverse of positionOf().
Implementation
Vector2 toLocal(Vector2 point) => transform.globalToLocal(point);