Matter.js / Inertia coming to a stop

Hi!

I’m trying a bunch of ways to get an inertia effect when a character stops moving; ie the character moves, then keys are released and the character loses energy and slows down to a stop. Sadly no matter what i do i cant seem to accomplish this. Any suggestions?

class Player {
constructor(scene, x, y) {
this.scene = scene;
this.sprite = scene.matter.add.sprite(x, y, ‘cube’).setBounce(0.2).setFixedRotation();
this.sprite.body.inertia = Infinity;
this.sprite.setFrictionAir(0.01);
this.sprite.setFriction(100.2);
this.canJump = true;
this.isOnGround = false;

I know the 100.2 value very high, but i tried much lower values with no success.

Thank you!