I'm developing a HTML5 Phaser game. In this game I do have a Group which I would like to behavior as a physics body (arcade-physics).
It is a character with a lot of moving parts (sprites) inside this group. In this case the group acts like a container for the sprites.
However I only able do add physics behavior to a sprite.
game.physics.arcade.enable(mySprite); // works good!
Doing the same to a group does not works. it only add physics to children sprites
game.physics.arcade.enable(myroup) // does no works
myGroup.body.(...) // body is undefined
I would like to create a "virtual" body to this group, mannually set dimensions for it (body.setSize) and add all my sprites inside it. Is that possible in any another way?