Ejemplo n.º 1
0
    void Start()
    {
        DrawLines();

        var intersectionPoint = _line1.IntersectsAt(_line2);

        if (!intersectionPoint.HasValue)
        {
            return;
        }
        var sphere = Positioning.CreateSphere(Color.blue);

        sphere.transform.position = _line1.Lerp(intersectionPoint.Value).GetAsVector3();
    }