Why does calling setScale on a gameObject added from a container re-scale the display size of the container? For example, consider:
this.container = game.add.container(this.position.x,this.position.y);
[...create and position a bunch of sprites...]
this.container.add([sprite1,sprite2,sprite3]);
this.bounds = this.container.getBounds();
this.container.setSize(this.bounds.width,this.bounds.height);
this.physicsContainer = game.matter.add.gameObject(this.container);
this.container.scale = 0.5;
this.physicsContainer.setScale(0.25);
This re-sizes the display of the sprites in the container, where I don’t necessarily want that. I may want a container to to be bigger than its collision rect, but physicsContainer.setScale overrides anything I do for the container itself.
Intended? Workaround? Perhaps I should set the bounds manually on the physics rect, or use some other method to assign it’s size?
I’m new to matter and phaser3, so be gentle.