Ejemplo n.º 1
0
    static void TestOctantIndex()
    {
        int size = 32;

        for (int x = 0; x < size; ++x)
        {
            for (int z = 0; z < size; ++z)
            {
                IntVector3 v = new IntVector3(x, 0, z);
                Debug.Log(string.Format("x {0} , z {1} oI: {2}", x, z, v.OctantIndex(size)));
            }
        }
    }