Использование LinearDamping
.
Вот так я использовал его в своем шутере сверху вниз, чтобы замедлить объект, если линейная скорость перестала применяться.
//Body is created using body definition
var b:b2Body = GameCore.environment.world.CreateBody(bodyDef);
//Fixture definition holds data such as density, friction and shape
var fixtureDef:b2FixtureDef;
fixtureDef = new b2FixtureDef();
//Define vertices etc in polygon shape
var shape:b2CircleShape;
shape = new b2CircleShape(Values.ptm(_diameter / 2));
//Assign values
fixtureDef.shape = shape;
fixtureDef.density = 1.5;
fixtureDef.friction = 0.3;
fixtureDef.restitution = 0.45;
//Add fixture to appropriate body
b.CreateFixture(fixtureDef);
//Movement Physics Settings
b.SetLinearDamping(_linearDamping);
b.SetAngularDamping(_angularDamping);