Bounding box calculation currently ignores gui visuals like inertia, wrench, selection objects, etc. This also means that calling Visual::GetBoundingBox() on a gui visual will always return incorrect results (empty box).
Some ideas to improve the check:
If visual already has the GZ_VISIBILITY_GUI flag then don't ignore child gui visuals
Add optional argument to Visual::GetBoundingBox() to ignore certain visual types
Original report (archived issue) by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).
Bounding box calculation currently ignores gui visuals like inertia, wrench, selection objects, etc. This also means that calling
Visual::GetBoundingBox()
on a gui visual will always return incorrect results (empty box).Some ideas to improve the check:
If visual already has the
GZ_VISIBILITY_GUI
flag then don't ignore child gui visualsAdd optional argument to
Visual::GetBoundingBox()
to ignore certain visual types