I'm using ApplyImpulse to make the hero in my game jump, but notice that when he's falling after a jump, if I keep pressing the move left or right buttons, he seems to float to the ground. I'd say it acts as if he was only under about 10% gravity.
My left / right buttons apply an impulse like:
body->ApplyImpuse(x, 0);
and my jump button applies an impulse like so:
body->ApplyImpuse(x, y);
where x is 0 if only the jump button is pressed.
Also, if I just press my jump button, he jumps up correctly, and falls under gravity correctly. I saw a post on the Box2d forums suggesting that my PTM ratio might be off, but I played with it and it didn't seem to fix the problem (http://www.box2d.org/forum/viewtopic.php?f=10&t=4120)
Any suggestions?
PS: I actually have it so if both a left or right button, and the jump button is pressed at the same time, then only a single impulse is applied (ie body->ApplyImpulse(x,y)), so it's not resulting in two different impulses being applied one after the other.