| 1634 | } |
| 1635 | |
| 1636 | PxU32 NpScene::addBroadPhaseRegion(const PxBroadPhaseRegion& region, bool populateRegion) |
| 1637 | { |
| 1638 | PX_PROFILE_ZONE("BroadPhase.addBroadPhaseRegion", getContextId()); |
| 1639 | |
| 1640 | NP_WRITE_CHECK(this); |
| 1641 | |
| 1642 | PX_CHECK_MSG(region.bounds.isValid(), "PxScene::addBroadPhaseRegion(): invalid bounds provided!"); |
| 1643 | if(region.bounds.isEmpty()) |
| 1644 | { |
| 1645 | Ps::getFoundation().error(PxErrorCode::eINVALID_PARAMETER, __FILE__, __LINE__, "PxScene::addBroadPhaseRegion(): region bounds are empty. Call will be ignored."); |
| 1646 | return 0xffffffff; |
| 1647 | } |
| 1648 | |
| 1649 | return mScene.addBroadPhaseRegion(region, populateRegion); |
| 1650 | } |
| 1651 | |
| 1652 | bool NpScene::removeBroadPhaseRegion(PxU32 handle) |
| 1653 | { |
no test coverage detected