MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / removeConstraintsFromScene

Method removeConstraintsFromScene

physx/source/physx/src/NpActor.cpp:332–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330///////////////////////////////////////////////////////////////////////////////
331
332void 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
349void NpActor::addConstraintsToSceneInternal()
350{

Callers 3

NpScene.cppFile · 0.80
removeActorTFunction · 0.80

Calls 5

getNpSceneMethod · 0.80
getNextMethod · 0.45
removeConstraintMethod · 0.45
getSceneMethod · 0.45

Tested by

no test coverage detected