| 1727 | } |
| 1728 | |
| 1729 | void Sc::Scene::removeConstraint(ConstraintCore& constraint) |
| 1730 | { |
| 1731 | ConstraintSim* cSim = constraint.getSim(); |
| 1732 | |
| 1733 | if (cSim) |
| 1734 | { |
| 1735 | BodySim* b = cSim->getAnyBody(); |
| 1736 | ConstraintGroupNode* n = b->getConstraintGroup(); |
| 1737 | |
| 1738 | if (n) |
| 1739 | getProjectionManager().invalidateGroup(*n, cSim); |
| 1740 | mConstraintSimPool->destroy(cSim); |
| 1741 | } |
| 1742 | |
| 1743 | mConstraints.erase(&constraint); |
| 1744 | } |
| 1745 | |
| 1746 | void Sc::Scene::addArticulation(ArticulationCore& articulation, BodyCore& root) |
| 1747 | { |
nothing calls this directly
no test coverage detected