| 621 | } |
| 622 | |
| 623 | void Sc::BodyCore::onOriginShift(const PxVec3& shift) |
| 624 | { |
| 625 | mCore.body2World.p -= shift; |
| 626 | if(mSimStateData && (getFlags() & PxRigidBodyFlag::eKINEMATIC) && mSimStateData->getKinematicData()->targetValid) |
| 627 | mSimStateData->getKinematicData()->targetPose.p -= shift; |
| 628 | |
| 629 | BodySim* b = getSim(); |
| 630 | if(b) |
| 631 | b->onOriginShift(shift); // BodySim might not exist if actor has simulation disabled (PxActorFlag::eDISABLE_SIMULATION) |
| 632 | } |
| 633 | |
| 634 | // PT: TODO: isn't that the same as BodyCore->getPxActor() now? |
| 635 | PxActor* Sc::getPxActorFromBodyCore(Sc::BodyCore* r, PxActorType::Enum& type) |
no test coverage detected