I create the new world and check number of bodies in world:
Message tell me about number of bodies, and show me "1". In the new world is a 1 body. Why? I use latest version box2D.
Code:
b2AABB worldAABB;
worldAABB.lowerBound.Set( -100.0f, -100.0f );
worldAABB.upperBound.Set( 100.0f, 100.0f );
world = new b2World( worldAABB, b2Vec2(0,0), true );
std::stringstream test;
test << map::world->GetJointCount();
allegro_message(test.str().c_str());
worldAABB.lowerBound.Set( -100.0f, -100.0f );
worldAABB.upperBound.Set( 100.0f, 100.0f );
world = new b2World( worldAABB, b2Vec2(0,0), true );
std::stringstream test;
test << map::world->GetJointCount();
allegro_message(test.str().c_str());
Message tell me about number of bodies, and show me "1". In the new world is a 1 body. Why? I use latest version box2D.