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

Method setSolverIterationCounts

physx/source/physx/src/NpRigidDynamic.cpp:441–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439
440
441void NpRigidDynamic::setSolverIterationCounts(PxU32 positionIters, PxU32 velocityIters)
442{
443 NP_WRITE_CHECK(NpActor::getOwnerScene(*this));
444 PX_CHECK_AND_RETURN(positionIters > 0, "PxRigidDynamic::setSolverIterationCount: positionIters must be more than zero!");
445 PX_CHECK_AND_RETURN(positionIters <= 255, "PxRigidDynamic::setSolverIterationCount: positionIters must be no greater than 255!");
446 PX_CHECK_AND_RETURN(velocityIters > 0, "PxRigidDynamic::setSolverIterationCount: velocityIters must be more than zero!");
447 PX_CHECK_AND_RETURN(velocityIters <= 255, "PxRigidDynamic::setSolverIterationCount: velocityIters must be no greater than 255!");
448
449 getScbBodyFast().setSolverIterationCounts((velocityIters & 0xff) << 8 | (positionIters & 0xff));
450}
451
452
453void NpRigidDynamic::getSolverIterationCounts(PxU32 & positionIters, PxU32 & velocityIters) const

Callers 12

createScissorLiftFunction · 0.45
createLongChainFunction · 0.45
buildBridgeFunction · 0.45
PxCloneDynamicFunction · 0.45
finishBodyFunction · 0.45
createGeometricTowerMethod · 0.45
createTwistTowerMethod · 0.45
finishBodyFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected