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
6060 pthread_mutex_destroy(&bufferWriteLock);
6161 }
6262
63−void VoxelSystem::setViewerHead(Head *newViewerHead) {
64− viewerHead = newViewerHead;
63+void VoxelSystem::setViewerAvatar(Avatar *newViewerAvatar) {
64+ viewerAvatar = newViewerAvatar;
6565 }
6666
6767 //////////////////////////////////////////////////////////////////////////////////////////
@@ -187,7 +187,7 @@ int VoxelSystem::treeToArrays(VoxelNode *currentNode, const glm::vec3& nodePosi · 119 unmodified lines
187187 int voxelsAdded = 0;
188188
189189 float halfUnitForVoxel = powf(0.5, *currentNode->octalCode) * (0.5 * TREE_SCALE);
190− glm::vec3 viewerPosition = viewerHead->getPosition();
190+ glm::vec3 viewerPosition = viewerAvatar->getPosition();
191191
192192 // debug LOD code
193193 glm::vec3 debugNodePosition;