| 689 | } |
| 690 | |
| 691 | void PhysicsBody::removeShape(int tag, bool reduceMassAndMoment /* = true*/) |
| 692 | { |
| 693 | for (auto&& shape : _shapes) |
| 694 | { |
| 695 | if (shape->getTag() == tag) |
| 696 | { |
| 697 | removeShape(shape, reduceMassAndMoment); |
| 698 | return; |
| 699 | } |
| 700 | } |
| 701 | } |
| 702 | |
| 703 | void PhysicsBody::removeShape(PhysicsShape* shape, bool reduceMassAndMoment /* = true*/) |
| 704 | { |
no test coverage detected