| 439 | |
| 440 | |
| 441 | void 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 | |
| 453 | void NpRigidDynamic::getSolverIterationCounts(PxU32 & positionIters, PxU32 & velocityIters) const |
no outgoing calls
no test coverage detected