History

renamed "Head" to "Avatar" and did a bunch a cleanups, including removing the three-lined comments

Jeffrey Ventrella committed 13 years ago

Commit e54fd0d1 parent a9ff4839 files · +37 −1664Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 9 files). Show all

Unified · Split

interface/src/VoxelSystem.cpp+3−3
@@ -60,8 +60,8 @@ VoxelSystem::~VoxelSystem() { · 59 unmodified lines
60 pthread_mutex_destroy(&bufferWriteLock);60 pthread_mutex_destroy(&bufferWriteLock);
61}61}
62 62
63void VoxelSystem::setViewerHead(Head *newViewerHead) {63void VoxelSystem::setViewerAvatar(Avatar *newViewerAvatar) {
64 viewerHead = newViewerHead;64 viewerAvatar = newViewerAvatar;
65}65}
66 66
67//////////////////////////////////////////////////////////////////////////////////////////67//////////////////////////////////////////////////////////////////////////////////////////
@@ -187,7 +187,7 @@ int VoxelSystem::treeToArrays(VoxelNode *currentNode, const glm::vec3& nodePosi · 119 unmodified lines
187 int voxelsAdded = 0;187 int voxelsAdded = 0;
188 188
189 float halfUnitForVoxel = powf(0.5, *currentNode->octalCode) * (0.5 * TREE_SCALE);189 float halfUnitForVoxel = powf(0.5, *currentNode->octalCode) * (0.5 * TREE_SCALE);
190 glm::vec3 viewerPosition = viewerHead->getPosition();190 glm::vec3 viewerPosition = viewerAvatar->getPosition();
191 191
192 // debug LOD code192 // debug LOD code
193 glm::vec3 debugNodePosition;193 glm::vec3 debugNodePosition;