It’s circle origin are just fine after created initially.
But if i change it’s radius on runtime, circle position are not centered.
var circle = this.add.circle(100,100,100,0xFFFFFF);
Change size/radius
circle.setRadius(200);
It’s circle origin are just fine after created initially.
But if i change it’s radius on runtime, circle position are not centered.
var circle = this.add.circle(100,100,100,0xFFFFFF);
Change size/radius
circle.setRadius(200);
You need to change position as well like
circle.setPosition(newX, newY);
So, i need to calculate new position manually ?
does circle.refresh(); after you resize not work for this?
Still not working as i expected.
Before

After resize

It’s not centered properly.
If there is no solution, i can stick to a sprite instead.
You can change the scale instead.
Thanks. I will try it later