Showing the changes to interface/src/VoxelSystem.cpp (1 of 7 files). Show all
Unified · Split
| @@ -680,9 +680,10 @@ void VoxelSystem::removeOutOfView() { · 679 unmodified lines | |||
| 680 | } | 680 | } |
| 681 | } | 681 | } |
| 682 | 682 | ||
| 683 | bool VoxelSystem::findRayIntersection(const glm::vec3& origin, const glm::vec3& direction, VoxelDetail& detail, float& distance) { | 683 | bool VoxelSystem::findRayIntersection(const glm::vec3& origin, const glm::vec3& direction, |
| 684 | VoxelDetail& detail, float& distance, BoxFace& face) { | ||
| 684 | VoxelNode* node; | 685 | VoxelNode* node; |
| 685 | if (!_tree->findRayIntersection(origin, direction, node, distance)) { | 686 | if (!_tree->findRayIntersection(origin, direction, node, distance, face)) { |
| 686 | return false; | 687 | return false; |
| 687 | } | 688 | } |
| 688 | detail.x = node->getCorner().x; | 689 | detail.x = node->getCorner().x; |