diff --git a/src/rendering/RenderUtil.cc b/src/rendering/RenderUtil.cc index fca4efa671..4d94e6532d 100644 --- a/src/rendering/RenderUtil.cc +++ b/src/rendering/RenderUtil.cc @@ -2117,5 +2117,19 @@ void RenderUtil::ViewCollisions(const Entity &_entity) this->dataPtr->viewingCollisions[colEntity] = showCol; colVisual->SetVisible(showCol); + + if (showCol) + { + // turn off wireboxes for collision entity + if (this->dataPtr->wireBoxes.find(colEntity) + != this->dataPtr->wireBoxes.end()) + { + ignition::rendering::WireBoxPtr wireBox = + this->dataPtr->wireBoxes[colEntity]; + auto visParent = wireBox->Parent(); + if (visParent) + visParent->SetVisible(false); + } + } } }