public override bool GetPortal (GraphNode other, List<Vector3> left, List<Vector3> right, bool backwards)
{
if ( this.connections.Length < 2 ) return false;
if ( this.connections.Length != 2 ) throw new System.Exception ("Invalid NodeLink3Node. Expected 2 connections, found " + this.connections.Length);
//if ( other != connections[0] || other != connections[1] ) return false;
if ( left != null ) {
//Debug.DrawLine ( portalA, portalB, Color.red);
left.Add ( portalA );
right.Add ( portalB );
/*
Vector3 normal = link.transform.forward;
Vector3 tangent = Vector3.Dot (normal, (Vector3)(other.Position - this.Position) ) > 0 ? link.transform.right*0.5f : -link.transform.right*0.5f;
Debug.DrawLine ( link.transform.position -tangent * link.portalWidth, link.transform.position +tangent * link.portalWidth, Color.red);
Debug.DrawRay ( link.transform.position -tangent * link.portalWidth, Vector3.up*5, Color.red);
Debug.Break ();
left.Add ( link.transform.position -tangent * link.portalWidth );
right.Add (link.transform.position +tangent * link.portalWidth );*/
}
return true;
}