| 330 | /////////////////////////////////////////////////////////////////////////////// |
| 331 | |
| 332 | void NpActor::removeConstraintsFromScene() |
| 333 | { |
| 334 | NpConnectorIterator iter = getConnectorIterator(NpConnectorType::eConstraint); |
| 335 | while (PxBase* ser = iter.getNext()) |
| 336 | { |
| 337 | NpConstraint* c = static_cast<NpConstraint*>(ser); |
| 338 | |
| 339 | NpScene* s = c->getNpScene(); |
| 340 | |
| 341 | if (s) |
| 342 | { |
| 343 | s->removeFromConstraintList(*c); |
| 344 | s->getScene().removeConstraint(c->getScbConstraint()); |
| 345 | } |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | void NpActor::addConstraintsToSceneInternal() |
| 350 | { |
no test coverage detected