| 826 | } |
| 827 | |
| 828 | int PhysicsBody::getCategoryBitmask() const |
| 829 | { |
| 830 | if (!_shapes.empty()) |
| 831 | { |
| 832 | return _shapes.front()->getCategoryBitmask(); |
| 833 | } |
| 834 | else |
| 835 | { |
| 836 | return UINT_MAX; |
| 837 | } |
| 838 | } |
| 839 | |
| 840 | void PhysicsBody::setContactTestBitmask(int bitmask) |
| 841 | { |