MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / addBroadPhaseRegion

Method addBroadPhaseRegion

deps/physx/physx/source/physx/src/NpScene.cpp:1673–1687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1671}
1672
1673PxU32 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
1689bool NpScene::removeBroadPhaseRegion(PxU32 handle)
1690{

Callers 2

initPhysicsFunction · 0.45
setupMBPFunction · 0.45

Calls 4

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

Tested by

no test coverage detected