How to change Rectangle width?

Hi

I use shape to draw player health bar.

But i don’t know how to update/change it’s width.

Method: this.add.rectangle

I know there are Geom version, but i get error if add it into a group of another objects.

this.displayWidth = WIDTH

Thanks, i move back to bitmap sprite