9 #pragma GCC visibility push(default)
11 typedef std::function<void(std::shared_ptr<Shape>, Float, Vect)> SegmentQueryFunc;
21 void add(std::shared_ptr<Shape>);
22 void add(std::shared_ptr<Body>);
23 void remove(std::shared_ptr<Shape>);
24 void remove(std::shared_ptr<Body>);
29 void setGravity(
const Vect&);
38 static void segmentQueryFunc(cpShape*, cpFloat, cpVect,
void*);
39 std::shared_ptr<Shape> findPtr(cpShape*)
const;
42 std::vector<std::shared_ptr<Shape>> shapes;
43 std::vector<std::shared_ptr<Body>> bodies;
45 struct SegmentQueryData {
46 const Space*
const self;
47 SegmentQueryFunc& func;
50 std::shared_ptr<Body> staticBody;
53 #pragma GCC visibility pop