Beispiel #1
0
 void drawPhysics()
 {
     applyCamera();
     glColor3ub(0, 255, 0);
     b2Transform transform;
     transform.SetIdentity();
     physicsDraw_->DrawTransform(transform);
     b2World *world = game_->getPhysicsService()->getWorld();
     world->SetDebugDraw(physicsDraw_.get());
     world->DrawDebugData();
 }