mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 10:28:22 +02:00
queryAABox wasn't centered on object
This commit is contained in:
parent
b9a7ed8560
commit
69bba4a182
1 changed files with 3 additions and 2 deletions
|
@ -567,8 +567,9 @@ bool SpatiallyNestable::setPuffedQueryAACube() {
|
|||
}
|
||||
bool success;
|
||||
AACube currentAACube = getMaximumAACube(success);
|
||||
// make an AACube with edges twice as long and centered on the object
|
||||
_queryAACube = AACube(currentAACube.getCorner() - glm::vec3(currentAACube.getScale()), currentAACube.getScale() * 2.0f);
|
||||
// make an AACube with edges thrice as long and centered on the object
|
||||
_queryAACube = AACube(currentAACube.getCorner() - glm::vec3(currentAACube.getScale()), currentAACube.getScale() * 3.0f);
|
||||
// _queryAACube = AACube(currentAACube.getCorner(), currentAACube.getScale());
|
||||
_queryAACubeSet = true;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue