8 #ifndef RECAST_SERVER_COLLECTENTITY_H
9 #define RECAST_SERVER_COLLECTENTITY_H
12 #include <Box2D/Box2D.h>
18 b2Body *body = fixture->GetBody();
19 if (body->GetType() == b2_dynamicBody)
20 entitys.push_back(
Entity(fixture));
25 std::vector<Entity>
getEntitys()
const {
return entitys; }
28 std::vector<Entity> entitys;
32 #endif //RECAST_SERVER_COLLECTENTITY_H
Definition: CollectEntity.h:15
bool ReportFixture(b2Fixture *fixture)
Definition: CollectEntity.h:17
std::vector< Entity > getEntitys() const
Definition: CollectEntity.h:25