Hi everyone.
I would like to rotate my MatterSprite around the point on its edge. So I try like this:
gameState.hero = this.matter.add.sprite(200, 200, 'hero');
gameState.hero.setOrigin(0.5,0);
gameState.hero.angle += 10;
Unfortunately this way physics body ignores my pivot point (see attached image)
Here is working example (image is rotating properly, but I would like this pink rectangle around my image : https://codepen.io/anon/pen/OqrBrp?editors=1010 (hold left mouse button to rotate)