I develop a game using Box2D in Cocos2d-x with Xcode and iPhone simulator. I apply a upper force to a body in a b2World(gravity 0.0f, -10.0f), and I find that the body fly up to different height each time. When b2World has many bodies, the problem more likely to occur. And, I also want to ask how does following function set with velocityIterations and positionIterations.
world->Step(dt, velocityIterations, positionIterations);
Thank you.