| 11 | } |
| 12 | |
| 13 | void SceneNode::removeChild(Movable& child) |
| 14 | { |
| 15 | const auto childToRemove |
| 16 | = std::remove(m_children.begin(), m_children.end(), &child); |
| 17 | if (childToRemove == m_children.end()) |
| 18 | throw Exceptions::ChildNotInSceneNode(this, &child, EXC_INFO); |
| 19 | m_children.erase(childToRemove, m_children.end()); |
| 20 | } |
| 21 | |
| 22 | void SceneNode::setPosition(const Transform::UnitVector& position) |
| 23 | { |
nothing calls this directly
no test coverage detected