Platform game, player stuck in the ground

Well, it's my first post here.

I'm making a platform game based on box2d engine, it's work pretty good... but, have an error that I can't handle by myself (cos I'm new on box2d programming too) =(

When I move the player for left/right (always when the player hit the ground or other stuff, and still in there), it doesn't move... as if it were stuck in the ground.


I set
playerBodyDef.fixedRotation = true;

but not works. But if I apply any kind of positive y-Axis impulse (gogogo up) to the player (that does it stop from touching the ground), it moves.


I think there's something I haven't learned yet... can someone help me?
Game link: http://seriouseliexpert.net63.net/Taken.swf
The code for creation of body on box2d that i'm using is:
Code:
// shape
var playerShape:b2PolygonShape = new b2PolygonShape();
playerShape.SetAsBox(PLAYER_WIDHT / 2  / GlobalVars.RATIO, PLAYER_HEIGHT / 2 / GlobalVars.RATIO);

var fd:b2FixtureDef = new b2FixtureDef();
fd.shape = playerShape;
fd.density = 10;
fd.friction = 10;
fd.restitution = 0.1;
fd.filter.categoryBits = GlobalVars.FLAG_PLAYER;
fd.filter.maskBits = (GlobalVars.FLAG_FLOOR | GlobalVars.FLAG_ITEM | GlobalVars.FLAG_SHOT | GlobalVars.FLAG_STUFF);

// bodyDef
var playerBodyDef:b2BodyDef = new b2BodyDef();
playerBodyDef.position.Set((position.x + (PLAYER_WIDHT / 2)) / GlobalVars.RATIO, (position.y + (PLAYER_HEIGHT / 2)) / GlobalVars.RATIO);
playerBodyDef.type = b2Body.b2_dynamicBody;
playerBodyDef.fixedRotation = true;

// body
var playerBody:b2Body = GlobalVars.world.CreateBody(playerBodyDef);
playerBody.CreateFixture(fd);



And actualy I move the player in this way:
Code:
// If KeyLeft was pressed
if (allkeys[37]) {
this._body.SetLinearVelocity(new b2Vec2( -PLAYER_WALK_SPEED, this._body.GetLinearVelocity().y));
} else if (allKeys[39]) {
this._body.SetLinearVelocity(new b2Vec2(PLAYER_WALK_SPEED, this._body.GetLinearVelocity().y));
}



Did i making wrong?
maybe your friction is set too high
How is your PLAYER_WALK_SPEED variable calculated?
I don't recommend you set the linear velocity, apply a force in the direction you want to move (NOT an impulse).

Also, why do you set your friction to 10? and how much are you setting the ground's friction to?

And, Schrodinger'sCat's question as well, cuz it might be too low.

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