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

Method updateConstants

physx/source/physx/src/NpConstraint.cpp:262–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262void 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
279void NpConstraint::setBreakForce(PxReal linear, PxReal angular)
280{

Callers 3

updateDirtyShadersMethod · 0.45

Calls 4

getScenePvdClientMethod · 0.80
prepareDataMethod · 0.45
getPxConnectorMethod · 0.45
updatePvdPropertiesMethod · 0.45

Tested by

no test coverage detected