Strange box2d behavour when framerate drops (iphone)

Hi

I'm using box2d in the cocos2d iphone engine. So I realise this may not be the easiest question to answer as there are many variables involved. But just wanted to mention it here if anyone has any tips for what I could check.

My box2d world is set with zero gravity to simulate a top down game.

When I add a bullet to the world (as a b2Circle) I give it an initial linear velocity and it moves across the screen at a steady rate.

But if the framerate drops to zero for a second due to a big calculation going on, the bullet slows down and continues at a slower speed when the framerate goes back to normal.

I cant reproduce this in the box2d test bed in the cocos2d test project, so im guessing it's something I'm doing wrong.

Would there be anything obvious that would effect the speed of bodies when the frame rate drops?

I am not altering the linear velocity at any time after the initial speed is set when the body is added.

Thanks for any help.
Multiply the force applied by the time delta for the game loop. Same way you'd do time based movement, basically.

This rather assumes you are properly applying force at each step, and not just one huge force upon creation.
Hi thanks for the reply

I'm not applying any force. There is no gravity in my world and there is nothing for the bullet to collide with (its a sensor). So when I add it to the world I give it an initial velocity and as far as I can tell, it should continue at this speed no matter what the frame rate does?
No, it wouldn't unless you've decoupled the physics timestep and the framerate. This is a pretty popular topic, here's the standard issue reading material.

http://gafferongames.com/game-physics/f ... -timestep/

Original thread: https://box2d.org/forum/viewtopic.php?t=4803