Exemple #1
0
    public override VectQuater CorridorCreator(int cardinal)
    {
        VectQuater aux = new VectQuater();

        switch (cardinal)
        {
        case 0:
            aux.vector3    = posRoom + new Vector3(0, 0, sDiv2);
            aux.quaternion = new Quaternion(0, -180, 0, 0);
            break;

        case 1:
            aux.vector3    = posRoom + new Vector3(sDiv2, 0, 0);
            aux.quaternion = new Quaternion(0, 90, 0, 90);
            break;

        case 2:
            aux.vector3    = posRoom + new Vector3(0, 0, -sDiv2);
            aux.quaternion = Quaternion.identity;
            break;

        case 3:
            aux.vector3    = posRoom + new Vector3(-sDiv2, 0, 0);
            aux.quaternion = new Quaternion(0, 90, 0, 90);
            break;
        }
        return(aux);
    }
Exemple #2
0
    public override VectQuater CorridorCreator(int cardinal)
    {
        VectQuater aux = new VectQuater();

        switch (cardinal)
        {
        case 0:
            aux.vector3    = posRoom + new Vector3(size, 0, 0);
            aux.quaternion = new Quaternion(0, 90, 0, 90);
            break;

        case 1:
            aux.vector3    = posRoom + new Vector3(-size, 0, 0);
            aux.quaternion = new Quaternion(0, 90, 0, 90);
            break;
        }
        return(aux);
    }
Exemple #3
0
    public override VectQuater CorridorCreator(int cardinal)
    {
        VectQuater aux = new VectQuater();

        switch (cardinal)
        {
        case 0:
            aux.vector3    = posRoom + new Vector3(0, 0, size);
            aux.quaternion = Quaternion.identity;
            break;

        case 1:
            aux.vector3    = posRoom + new Vector3(0, 0, -size);
            aux.quaternion = Quaternion.identity;
            break;
        }
        return(aux);
    }