/// <summary> /// The current corridor position is expected to be within the first polygon in the path. The target /// is expected to be in the last polygon. /// </summary> /// <param name="target">The target</param> /// <param name="path">The polygon path</param> /// <param name="npath">The path length</param> public void SetCorridor(Vector3 target, PolyId[] path, int npath) { this.target = target; path.CopyTo(this.path, 0); this.pathCount = npath; }