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

Method removeConstraint

physx/source/simulationcontroller/src/ScScene.cpp:1729–1744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1727}
1728
1729void 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
1746void Sc::Scene::addArticulation(ArticulationCore& articulation, BodyCore& root)
1747{

Callers

nothing calls this directly

Calls 6

getAnyBodyMethod · 0.80
getConstraintGroupMethod · 0.80
invalidateGroupMethod · 0.80
getSimMethod · 0.45
destroyMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected