| 373 | /////////////////////////////////////////////////////////////////////////////// |
| 374 | |
| 375 | NpShapeManager* NpActor::getShapeManager(PxRigidActor& actor) |
| 376 | { |
| 377 | // DS: if the performance here becomes an issue we can use the same kind of offset hack as below |
| 378 | |
| 379 | const PxType actorType = actor.getConcreteType(); |
| 380 | |
| 381 | if (actorType == PxConcreteType::eRIGID_DYNAMIC) |
| 382 | return &static_cast<NpRigidDynamic&>(actor).getShapeManager(); |
| 383 | else if(actorType == PxConcreteType::eRIGID_STATIC) |
| 384 | return &static_cast<NpRigidStatic&>(actor).getShapeManager(); |
| 385 | else if (actorType == PxConcreteType::eARTICULATION_LINK) |
| 386 | return &static_cast<NpArticulationLink&>(actor).getShapeManager(); |
| 387 | else |
| 388 | { |
| 389 | PX_ASSERT(0); |
| 390 | return NULL; |
| 391 | } |
| 392 | } |
| 393 | |
| 394 | const NpShapeManager* NpActor::getShapeManager(const PxRigidActor& actor) |
| 395 | { |
no test coverage detected