| 801 | } |
| 802 | |
| 803 | static void NpDestroyShape(Scb::Shape& scb) |
| 804 | { |
| 805 | NpShape* np = const_cast<NpShape*>(getNpShape(&scb)); |
| 806 | |
| 807 | void* ud = np->userData; |
| 808 | |
| 809 | if(np->getBaseFlags() & PxBaseFlag::eOWNS_MEMORY) |
| 810 | NpFactory::getInstance().releaseShapeToPool(*np); |
| 811 | else |
| 812 | np->~NpShape(); |
| 813 | |
| 814 | NpPhysics::getInstance().notifyDeletionListenersMemRelease(np, ud); |
| 815 | } |
| 816 | |
| 817 | static void NpDestroyConstraint(Scb::Constraint& scb) |
| 818 | { |
no test coverage detected