Hi all! I’m new here. I try use Polygon and physical Matter.
But when I try draw it, few polygons has wrong body when other is not.
I don’t know why?
I use Phaser 3.22.
Hi all! I’m new here. I try use Polygon and physical Matter.
But when I try draw it, few polygons has wrong body when other is not.
I don’t know why?
I use Phaser 3.22.
Because a Polygon Game Object and a Matter Body are not the same thing and cannot be rendered in the same way. More details here: https://github.com/photonstorm/phaser/issues/4931
Thank you! Can I ask one more question?
Here is my code
I tried click on the polygon r2 but the click area is wrong!
The click area is wrong like the Matter Body. I draw polygon r1 to show the wrong click area.
How to fix it?