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

Function removePair

physx/source/lowlevelaabb/src/BpBroadPhaseSapAux.cpp:684–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

682}
683
684void removePair(BpHandle id0, BpHandle id1, PxcScratchAllocator* scratchAllocator, SapPairManager& pairManager, DataArray& dataArray)
685{
686 const BroadPhasePair* UP = reinterpret_cast<const BroadPhasePair*>(pairManager.FindPair(id0, id1));
687 if(UP)
688 {
689 if(!pairManager.IsInArray(UP))
690 {
691 pairManager.SetInArray(UP);
692 dataArray.AddData(pairManager.GetPairIndex(UP), scratchAllocator);
693 }
694 pairManager.SetRemoved(UP);
695 }
696}
697
698struct AddPairParams
699{

Callers 3

postUpdateMethod · 0.85

Calls 6

FindPairMethod · 0.80
IsInArrayMethod · 0.80
SetInArrayMethod · 0.80
AddDataMethod · 0.80
GetPairIndexMethod · 0.80
SetRemovedMethod · 0.80

Tested by

no test coverage detected