| 318 | // PT: make sure we always add to array and set the array index properly / at the same time |
| 319 | template<class T> |
| 320 | static PX_FORCE_INLINE void addRigidActorToArray(T& a, Ps::Array<PxRigidActor*>& rigidActors) |
| 321 | { |
| 322 | a.setRigidActorArrayIndex(rigidActors.size()); |
| 323 | rigidActors.pushBack(&a); |
| 324 | } |
| 325 | |
| 326 | void NpScene::addActor(PxActor& actor, const PxBVHStructure* bvhStructure) |
| 327 | { |
no test coverage detected