示例#1
0
    public void SetVoxelAtIndex(Vector3 index, VoxelProxy voxel)
    {
        Voxel currentVoxel;

        if (voxelGrid.TryGetValue(index, out currentVoxel))
        {
            dirtyVoxelsToUpdate.Add(index, voxel);
        }
        else
        {
            dirtyVoxelsToAdd.Add(index, voxel);
        }
    }
示例#2
0
 public void SetVoxelAtWorldPosition(Vector3 worldPosition, VoxelProxy voxelProxy)
 {
     SetVoxelAtIndex(GetGridNodeIndex(worldPosition), voxelProxy);
 }