| 503 | } |
| 504 | |
| 505 | Vector<PhysicsShape*> PhysicsWorld::getShapes(const Vec2& point) const |
| 506 | { |
| 507 | Vector<PhysicsShape*> arr; |
| 508 | cpSpacePointQuery(_cpSpace, PhysicsHelper::vec22cpv(point), 0, CP_SHAPE_FILTER_ALL, |
| 509 | (cpSpacePointQueryFunc)PhysicsWorldCallback::getShapesAtPointFunc, &arr); |
| 510 | |
| 511 | return arr; |
| 512 | } |
| 513 | |
| 514 | PhysicsShape* PhysicsWorld::getShape(const Vec2& point) const |
| 515 | { |