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

Method removeConstraint

physx/source/physx/src/buffering/ScbScene.cpp:630–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628}
629
630void Scb::Scene::removeConstraint(Scb::Constraint& constraint)
631{
632 if (!mIsBuffering)
633 {
634 mScene.removeConstraint(constraint.getScConstraint());
635
636 // Release pvd constraint immediately since delayed removal with already released ext::joints does not work, can't call callback.
637 if(constraint.getControlState() != ControlState::eINSERT_PENDING)
638 RELEASE_PVD_INSTANCE(&constraint)
639
640 constraint.resetControl(ControlState::eNOT_IN_SCENE);
641 constraint.setScbScene(NULL);
642 }
643 else
644 {
645 mConstraintManager.scheduleForRemove(constraint);
646 }
647}
648
649///////////////////////////////////////////////////////////////////////////////
650

Callers 6

releaseConstraintsMethod · 0.45
releaseMethod · 0.45
setActorsMethod · 0.45
removeMethod · 0.45

Calls 1

scheduleForRemoveMethod · 0.80

Tested by

no test coverage detected