Add calculation of bounding sphere for model projection, closes #2319

This commit is contained in:
Malin E
2024-04-29 14:29:08 +02:00
parent e6a8207dfe
commit 7061675ab5

View File

@@ -202,6 +202,7 @@ void RenderableModelProjection::initializeGL() {
_projectionComponent.initializeGL();
_geometry->initialize();
_geometry->calculateBoundingRadius();
setBoundingSphere(_geometry->boundingRadius() * _modelScale);
// Set Interaction sphere size to be 10% of the bounding sphere