| 807 | } |
| 808 | |
| 809 | static 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 | |
| 823 | static void NpDestroyConstraint(Scb::Constraint& scb) |
| 824 | { |
no test coverage detected