mirror of
https://github.com/overte-org/overte.git
synced 2025-08-13 09:49:45 +02:00
less magic
This commit is contained in:
parent
9ca3ec4313
commit
4f1489f8b4
1 changed files with 3 additions and 1 deletions
|
@ -999,7 +999,9 @@ bool SpatiallyNestable::computePuffedQueryAACube() {
|
|||
bool success;
|
||||
AACube currentAACube = getMaximumAACube(success);
|
||||
// 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);
|
||||
const float PUFF_COEFICIENT = _children.size() > 0 ? 3.0f : 1.0f;
|
||||
float scale = currentAACube.getScale();
|
||||
_queryAACube = AACube(currentAACube.getCorner() - glm::vec3(scale), scale * PUFF_COEFICIENT);
|
||||
_queryAACubeSet = true;
|
||||
|
||||
getThisPointer()->forEachDescendant([&](SpatiallyNestablePointer descendant) {
|
||||
|
|
Loading…
Reference in a new issue