void GameEngine::createActor() { // create actor b2BodyDef bodyDef; bodyDef.type = b2_dynamicBody; bodyDef.position.Set(m_stage.upperBound.x / 2.0f, m_stage.upperBound.y / 2.0); m_actor = m_world->CreateBody(&bodyDef); b2PolygonShape dynamicBox; dynamicBox.SetAsBox(10.0f, 10.0f); b2FixtureDef fixtureDef; fixtureDef.shape = &dynamicBox; fixtureDef.density = 1.0f; fixtureDef.friction = 0.3f; m_actor->CreateFixture(&fixtureDef); bot.Create(m_actor); }