| 67 | } |
| 68 | |
| 69 | void TrackObject::Attach(std::shared_ptr<Spatial> const& object) |
| 70 | { |
| 71 | if (mValid && object) |
| 72 | { |
| 73 | auto node = std::dynamic_pointer_cast<Node>(mRoot); |
| 74 | if (node) |
| 75 | { |
| 76 | node->AttachChild(object); |
| 77 | } |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | void TrackObject::Detach(std::shared_ptr<Spatial> const& object) |
| 82 | { |
no test coverage detected