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

Function NpDestroyArticulationLink

physx/source/physx/src/NpFactory.cpp:746–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744}
745
746static void NpDestroyArticulationLink(Scb::Body& scb)
747{
748 NpArticulationLink* np = const_cast<NpArticulationLink*>(getNpArticulationLink(&scb));
749
750 void* ud = np->userData;
751 if(np->getBaseFlags() & PxBaseFlag::eOWNS_MEMORY)
752 NpFactory::getInstance().releaseArticulationLinkToPool(*np);
753 else
754 np->~NpArticulationLink();
755 NpPhysics::getInstance().notifyDeletionListenersMemRelease(np, ud);
756}
757
758static void NpDestroyArticulationJoint(Scb::ArticulationJoint& scb)
759{

Callers 1

NpDestroyFunction · 0.85

Calls 4

getBaseFlagsMethod · 0.80
~NpArticulationLinkMethod · 0.80

Tested by

no test coverage detected