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

Method addBroadPhaseRegion

physx/source/physx/src/NpScene.cpp:1636–1650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1634}
1635
1636PxU32 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
1652bool NpScene::removeBroadPhaseRegion(PxU32 handle)
1653{

Callers 2

initPhysicsFunction · 0.45
setupMBPFunction · 0.45

Calls 4

errorMethod · 0.80
getContextIdFunction · 0.50
isValidMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected