mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 13:28:16 +02:00
fix ray picking output distance to be meters
This commit is contained in:
parent
3e7f9ee1fe
commit
f2ed1337b5
1 changed files with 4 additions and 0 deletions
|
@ -728,6 +728,10 @@ bool Octree::findRayIntersection(const glm::vec3& origin, const glm::vec3& direc
|
||||||
}
|
}
|
||||||
|
|
||||||
recurseTreeWithOperation(findRayIntersectionOp, &args);
|
recurseTreeWithOperation(findRayIntersectionOp, &args);
|
||||||
|
|
||||||
|
if (args.found) {
|
||||||
|
args.distance *= (float)(TREE_SCALE); // scale back up to meters
|
||||||
|
}
|
||||||
|
|
||||||
if (gotLock) {
|
if (gotLock) {
|
||||||
unlock();
|
unlock();
|
||||||
|
|
Loading…
Reference in a new issue