Showing the changes to interface/src/VoxelSystem.cpp (1 of 9 files). Show all
Unified · Split
| @@ -930,6 +930,20 @@ bool VoxelSystem::findRayIntersection(const glm::vec3& origin, const glm::vec3& · 929 unmodified lines | ||
| 930 | 930 | return true; |
| 931 | 931 | } |
| 932 | 932 | |
| 933 | +bool VoxelSystem::findSpherePenetration(const glm::vec3& center, float radius, glm::vec3& penetration) { | |
| 934 | + pthread_mutex_lock(&_treeLock); | |
| 935 | + bool result = _tree->findSpherePenetration(center, radius, penetration); | |
| 936 | + pthread_mutex_unlock(&_treeLock); | |
| 937 | + return result; | |
| 938 | +} | |
| 939 | + | |
| 940 | +bool VoxelSystem::findCapsulePenetration(const glm::vec3& start, const glm::vec3& end, float radius, glm::vec3& penetration) { | |
| 941 | + pthread_mutex_lock(&_treeLock); | |
| 942 | + bool result = _tree->findCapsulePenetration(start, end, radius, penetration); | |
| 943 | + pthread_mutex_unlock(&_treeLock); | |
| 944 | + return result; | |
| 945 | +} | |
| 946 | + | |
| 933 | 947 | class falseColorizeRandomEveryOtherArgs { |
| 934 | 948 | public: |
| 935 | 949 | falseColorizeRandomEveryOtherArgs() : totalNodes(0), colorableNodes(0), coloredNodes(0), colorThis(true) {}; |