| 1671 | } |
| 1672 | |
| 1673 | PxU32 NpScene::addBroadPhaseRegion(const PxBroadPhaseRegion& region, bool populateRegion) |
| 1674 | { |
| 1675 | PX_PROFILE_ZONE("BroadPhase.addBroadPhaseRegion", getContextId()); |
| 1676 | |
| 1677 | NP_WRITE_CHECK(this); |
| 1678 | |
| 1679 | PX_CHECK_MSG(region.bounds.isValid(), "PxScene::addBroadPhaseRegion(): invalid bounds provided!"); |
| 1680 | if(region.bounds.isEmpty()) |
| 1681 | { |
| 1682 | Ps::getFoundation().error(PxErrorCode::eINVALID_PARAMETER, __FILE__, __LINE__, "PxScene::addBroadPhaseRegion(): region bounds are empty. Call will be ignored."); |
| 1683 | return 0xffffffff; |
| 1684 | } |
| 1685 | |
| 1686 | return mScene.addBroadPhaseRegion(region, populateRegion); |
| 1687 | } |
| 1688 | |
| 1689 | bool NpScene::removeBroadPhaseRegion(PxU32 handle) |
| 1690 | { |
no test coverage detected