Esempio n. 1
0
File: Way.cs Progetto: Cdrix/SM
    /// <summary>
    /// Returns planes dim from the Starting point of topleft
    /// </summary>
    protected List <Vector3> ReturnPlanesDim(Vector3 topLefts)
    {
        List <Vector3> res = new List <Vector3>();

        res = UPoly.RetSubMeshPoly(topLefts, Program.gameScene.controllerMain.MeshController.AllVertexs, WideSquare);

        //if is a bridge Y will be  _firstWayPoint.y + _secondWayPoint.y) / 2
        if (HType.ToString().Contains(H.Bridge.ToString()))
        {
            for (int i = 0; i < res.Count; i++)
            {
                Vector3 t = res[i];
                t.y    = (_firstWayPoint.y + _secondWayPoint.y) / 2;
                res[i] = t;
            }
        }
        return(res);
    }