private bool Cast(Line line, out RaycastHit hit)
 {
     Line worldLine = line.ToWorldFrom(_transform);
     bool collided = Physics.Raycast (worldLine.from, worldLine.direction, out hit, worldLine.length, obstaclesLayerMask);
     return collided;
 }