| 342 | } |
| 343 | |
| 344 | void NpShape::setLocalPose(const PxTransform& newShape2Actor) |
| 345 | { |
| 346 | PX_CHECK_AND_RETURN(newShape2Actor.isSane(), "PxShape::setLocalPose: pose is not valid."); |
| 347 | PX_CHECK_AND_RETURN(isWritable(), "PxShape::setLocalPose: shared shapes attached to actors are not writable."); |
| 348 | NP_WRITE_CHECK(getOwnerScene()); |
| 349 | |
| 350 | mShape.setShape2Actor(newShape2Actor.getNormalized()); |
| 351 | |
| 352 | updateSQ("PxShape::setLocalPose: Shape is a part of pruning structure, pruning structure is now invalid!"); |
| 353 | } |
| 354 | |
| 355 | PxTransform NpShape::getLocalPose() const |
| 356 | { |
no test coverage detected