| 403 | } |
| 404 | |
| 405 | PxAggregate* NpFactory::createAggregate(PxU32 maxActors, bool selfCollisions) |
| 406 | { |
| 407 | NpAggregate* npAggregate; |
| 408 | { |
| 409 | Ps::Mutex::ScopedLock lock(mAggregatePoolLock); |
| 410 | npAggregate = mAggregatePool.construct(maxActors, selfCollisions); |
| 411 | } |
| 412 | |
| 413 | addAggregate(npAggregate); |
| 414 | return npAggregate; |
| 415 | } |
| 416 | |
| 417 | void NpFactory::releaseAggregateToPool(NpAggregate& aggregate) |
| 418 | { |
no test coverage detected