| 963 | } |
| 964 | |
| 965 | bool PhysicsShape::containsPoint(const Vec2& point) const |
| 966 | { |
| 967 | for (auto&& shape : _cpShapes) |
| 968 | { |
| 969 | if (cpShapePointQuery(shape, PhysicsHelper::vec22cpv(point), nullptr) < 0) |
| 970 | { |
| 971 | return true; |
| 972 | } |
| 973 | } |
| 974 | |
| 975 | return false; |
| 976 | } |
| 977 | |
| 978 | } |
| 979 |