Exemplo n.º 1
0
    private void Update()
    {
        var intersectionLine = line1.IntersectLine(line2);

        Debug.DrawLine(line1.point1.ToVector3(), line1.point2.ToVector3(), Color.green);
        Debug.DrawLine(line2.point1.ToVector3(), line2.point2.ToVector3(), Color.red);
        Debug.DrawLine(intersectionLine.point1.ToVector3(), intersectionLine.point2.ToVector3(), Color.blue);
    }