| 260 | } |
| 261 | |
| 262 | void NpConstraint::updateConstants() |
| 263 | { |
| 264 | if(!mIsDirty) |
| 265 | return; |
| 266 | |
| 267 | //ML - we can't just set dirty to false because this fails with constraints that were created while the scene was buffering! |
| 268 | if(mConstraint.updateConstants(mConstraint.getPxConnector()->prepareData())) |
| 269 | mIsDirty = false; |
| 270 | #if PX_SUPPORT_PVD |
| 271 | Scb::Scene* scbScene = mConstraint.getScbSceneForAPI(); |
| 272 | //Changed to use the visual scenes update system which respects |
| 273 | //the debugger's connection type flag. |
| 274 | if( scbScene && !scbScene->isPhysicsBuffering() ) |
| 275 | scbScene->getScenePvdClient().updatePvdProperties( &mConstraint ); |
| 276 | #endif |
| 277 | } |
| 278 | |
| 279 | void NpConstraint::setBreakForce(PxReal linear, PxReal angular) |
| 280 | { |
no test coverage detected