コード例 #1
0
        /// <summary>
        /// Inserts a new voxel and updates the instance buffers.
        /// </summary>
        public void InsertSeed(int x, int y, int z, VoxelType type, Direction from = Direction.DOWN)
        {
            Int32     pos = _map.EncodePosition(x, y, z);
            VoxelType old = _map.Get(pos);

            InsertVoxel(pos, type, 0, true, 0, 0, from);
            // Immediate upload (assuming ~1 seed per frame)
            Upload();
        }