mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 00:26:33 +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);
|
||||
|
||||
if (args.found) {
|
||||
args.distance *= (float)(TREE_SCALE); // scale back up to meters
|
||||
}
|
||||
|
||||
if (gotLock) {
|
||||
unlock();
|
||||
|
|
Loading…
Reference in a new issue