fix ray picking output distance to be meters

This commit is contained in:
ZappoMan 2014-12-10 11:04:32 -08:00
parent 3e7f9ee1fe
commit f2ed1337b5

View file

@ -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();