More tweaking and refactoring

This commit is contained in:
MitchellHansen
2017-09-23 12:46:26 -07:00
parent e0cb26a9d1
commit 0b42481020
9 changed files with 154 additions and 106 deletions

View File

@@ -52,12 +52,10 @@ bool Map::test_oct_arr_traversal(sf::Vector3i dimensions) {
}
void Map::setVoxel(sf::Vector3i pos, int val) {
voxel_data[pos.x + OCT_DIM * (pos.y + OCT_DIM * pos.z)] = val;
}
char Map::getVoxel(sf::Vector3i pos){
return octree.GetVoxel(pos).found;
}