| 79 | } |
| 80 | |
| 81 | void TrackObject::Detach(std::shared_ptr<Spatial> const& object) |
| 82 | { |
| 83 | if (mValid && object) |
| 84 | { |
| 85 | auto node = std::dynamic_pointer_cast<Node>(mRoot); |
| 86 | if (node) |
| 87 | { |
| 88 | node->DetachChild(object); |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | void TrackObject::DetachAll() |
| 94 | { |
no test coverage detected