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