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

Method checkConstraintValidity

physx/source/physx/src/NpRigidStatic.cpp:132–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130
131#if PX_CHECKED
132bool NpRigidStatic::checkConstraintValidity() const
133{
134 // Perhaps NpConnectorConstIterator would be worth it...
135 NpConnectorIterator iter = (const_cast<NpRigidStatic*>(this))->getConnectorIterator(NpConnectorType::eConstraint);
136 while (PxBase* ser = iter.getNext())
137 {
138 NpConstraint* c = static_cast<NpConstraint*>(ser);
139 if(!c->NpConstraint::isValid())
140 return false;
141 }
142 return true;
143}
144#endif
145
146#if PX_ENABLE_DEBUG_VISUALIZATION

Callers 4

addActorMethod · 0.80
NpScene.cppFile · 0.80
addAggregateMethod · 0.80
addCollectionMethod · 0.80

Calls 2

getConnectorIteratorMethod · 0.80
getNextMethod · 0.45

Tested by

no test coverage detected