| 744 | } |
| 745 | |
| 746 | static 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 | |
| 758 | static void NpDestroyArticulationJoint(Scb::ArticulationJoint& scb) |
| 759 | { |
no test coverage detected