| 234 | } |
| 235 | |
| 236 | void NpFactory::releaseArticulationToPool(PxArticulationBase& articulation) |
| 237 | { |
| 238 | |
| 239 | PX_ASSERT(articulation.getBaseFlags() & PxBaseFlag::eOWNS_MEMORY); |
| 240 | if (articulation.getType() == PxArticulationBase::eMaximumCoordinate) |
| 241 | { |
| 242 | Ps::Mutex::ScopedLock lock(mArticulationPoolLock); |
| 243 | mArticulationPool.destroy(static_cast<NpArticulation*>(&articulation)); |
| 244 | } |
| 245 | else |
| 246 | { |
| 247 | Ps::Mutex::ScopedLock lock(mArticulationRCPoolLock); |
| 248 | mArticulationRCPool.destroy(static_cast<NpArticulationReducedCoordinate*>(&articulation)); |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | NpArticulation* NpFactory::createNpArticulation() |
| 253 | { |
no test coverage detected