| 191 | } |
| 192 | |
| 193 | bool NpAggregate::removeActorAndReinsert(PxActor& actor, bool reinsert) |
| 194 | { |
| 195 | for(PxU32 i=0;i<mNbActors;i++) |
| 196 | { |
| 197 | if(mActors[i]==&actor) |
| 198 | { |
| 199 | mActors[i] = mActors[--mNbActors]; |
| 200 | removeAndReinsert(actor, reinsert); |
| 201 | return true; |
| 202 | } |
| 203 | } |
| 204 | Ps::getFoundation().error(PxErrorCode::eDEBUG_WARNING, __FILE__, __LINE__, "PxAggregate: can't remove actor, actor doesn't belong to aggregate"); |
| 205 | return false; |
| 206 | } |
| 207 | |
| 208 | bool NpAggregate::removeActor(PxActor& actor) |
| 209 | { |
no test coverage detected