예제 #1
0
    public void RebuildMatrix()
    {
        Vector3 matSize = room.transform.localScale / matrixScale;

        maxX = (int)System.Math.Ceiling(matSize.x);
        maxY = (int)System.Math.Ceiling(matSize.y);
        maxZ = (int)System.Math.Ceiling(matSize.z);

        meshAnalyzer.RecalculateMesh(this);

        if (visualizeMatrix)
        {
            visualization.ReconstructVisuals(this);
        }
    }