| 512 | } |
| 513 | |
| 514 | PhysicsShape* PhysicsWorld::getShape(const Vec2& point) const |
| 515 | { |
| 516 | cpShape* shape = |
| 517 | cpSpacePointQueryNearest(_cpSpace, PhysicsHelper::vec22cpv(point), 0, CP_SHAPE_FILTER_ALL, nullptr); |
| 518 | return shape == nullptr ? nullptr : static_cast<PhysicsShape*>(cpShapeGetUserData(shape)); |
| 519 | } |
| 520 | |
| 521 | bool PhysicsWorld::init() |
| 522 | { |
nothing calls this directly
no test coverage detected