| 134 | |
| 135 | |
| 136 | bool NpRigidDynamic::getKinematicTarget(PxTransform& target) const |
| 137 | { |
| 138 | NP_READ_CHECK(NpActor::getOwnerScene(*this)); |
| 139 | |
| 140 | const Scb::Body& b = getScbBodyFast(); |
| 141 | if(b.getFlags() & PxRigidBodyFlag::eKINEMATIC) |
| 142 | { |
| 143 | PxTransform bodyTarget; |
| 144 | if(b.getKinematicTarget(bodyTarget)) |
| 145 | { |
| 146 | // The internal target is body related. Transform to actor related target |
| 147 | target = bodyTarget * b.getBody2Actor().getInverse(); |
| 148 | return true; |
| 149 | } |
| 150 | } |
| 151 | return false; |
| 152 | } |
| 153 | |
| 154 | void NpRigidDynamic::setCMassLocalPose(const PxTransform& pose) |
| 155 | { |
no test coverage detected