I want draw a model BoundingBox in osgEarth, but position is not suitable.
osg::ComputeBoundsVisitor boundVisitor;
node->accept(boundVisitor);
osg::BoundingBox boundingBox = boundVisitor.getBoundingBox();
osg::Matrixd localToWorld = osg::computeLocalToWorld(paath);
Now the bounding box model is perpendicular to the ground, but the direction is wrong.
It will be helpful if you:
Thanks!