History

renamed "bodyPosition" to "position". (This corresponds to the position of the avatar on the ground, where y=0). I will next add a new "getBodyPosition" which returns the avatar's center of gravity - is useful for certain purposes, such as setting collision volumes, etc.

Jeffrey Ventrella committed 13 years ago

Commit eb631e21 parent a73ea8c6 files · +29 −29Browse files

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

Unified · Split

interface/src/VoxelSystem.cpp+1−1
@@ -185,7 +185,7 @@ int VoxelSystem::treeToArrays(VoxelNode *currentNode, const glm::vec3& nodePosi · 184 unmodified lines
185185 int voxelsAdded = 0;
186186
187187 float halfUnitForVoxel = powf(0.5, *currentNode->octalCode) * (0.5 * TREE_SCALE);
188− glm::vec3 viewerPosition = viewerHead->getBodyPosition();
188+ glm::vec3 viewerPosition = viewerHead->getPosition();
189189
190190 // debug LOD code
191191 glm::vec3 debugNodePosition;