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

Function NpDestroyRigidActor

physx/source/physx/src/NpFactory.cpp:720–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718// to eliminate this link-time dep.
719
720static void NpDestroyRigidActor(Scb::RigidStatic& scb)
721{
722 NpRigidStatic* np = const_cast<NpRigidStatic*>(getNpRigidStatic(&scb));
723
724 void* ud = np->userData;
725
726 if(np->getBaseFlags() & PxBaseFlag::eOWNS_MEMORY)
727 NpFactory::getInstance().releaseRigidStaticToPool(*np);
728 else
729 np->~NpRigidStatic();
730
731 NpPhysics::getInstance().notifyDeletionListenersMemRelease(np, ud);
732}
733
734static void NpDestroyRigidDynamic(Scb::Body& scb)
735{

Callers 1

NpDestroyFunction · 0.85

Calls 4

getBaseFlagsMethod · 0.80
~NpRigidStaticMethod · 0.80

Tested by

no test coverage detected