Phaser 3.16.2 and 3.24.1 Matterjs sprite body position difference

Found the way to fix the issue. When adding matter body to the sprite, I had to set display origin to half of the sprite width/height. Then it was propery aligned with the body:

        this.sprite
        .setExistingBody(compoundBody)
        .setScale(1)
        .setPosition(x, y)
        .setDisplayOrigin(16, 16);

Checked in latest stable (3.50.0) version.