| 487 | } |
| 488 | |
| 489 | void NpShape::setRestOffset(PxReal restOffset) |
| 490 | { |
| 491 | NP_WRITE_CHECK(getOwnerScene()); |
| 492 | PX_CHECK_AND_RETURN(PxIsFinite(restOffset), "PxShape::setRestOffset: invalid float"); |
| 493 | PX_CHECK_AND_RETURN((restOffset < mShape.getContactOffset()), "PxShape::setRestOffset: restOffset should be less than contactOffset!"); |
| 494 | PX_CHECK_AND_RETURN(isWritable(), "PxShape::setRestOffset: shared shapes attached to actors are not writable."); |
| 495 | |
| 496 | mShape.setRestOffset(restOffset); |
| 497 | } |
| 498 | |
| 499 | PxReal NpShape::getRestOffset() const |
| 500 | { |
no test coverage detected