| 130 | |
| 131 | #if PX_CHECKED |
| 132 | bool 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 |
no test coverage detected