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

Function NpDestroyShape

deps/physx/physx/source/physx/src/NpFactory.cpp:809–821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

807}
808
809static void NpDestroyShape(Scb::Shape& scb)
810{
811 NpShape* np = const_cast<NpShape*>(getNpShape(&scb));
812
813 void* ud = np->userData;
814
815 if(np->getBaseFlags() & PxBaseFlag::eOWNS_MEMORY)
816 NpFactory::getInstance().releaseShapeToPool(*np);
817 else
818 np->~NpShape();
819
820 NpPhysics::getInstance().notifyDeletionListenersMemRelease(np, ud);
821}
822
823static void NpDestroyConstraint(Scb::Constraint& scb)
824{

Callers 1

NpDestroyFunction · 0.85

Calls 5

getNpShapeFunction · 0.85
getBaseFlagsMethod · 0.80
releaseShapeToPoolMethod · 0.80
~NpShapeMethod · 0.80

Tested by

no test coverage detected