let polygonData = [[539,364],[364,614],[714,614]];
let polygon1 = scene.add.polygon(0,0, polygonData, 0x0000ff);
polygon1.setScale(1.5);
polygon1.setOrigin(0.5);
let polygon2 = scene.add.polygon(0,0, polygonData, 0x00ff00);
polygon2.setScale(1);
polygon2.setOrigin(0.5);
Hi, I try to build a racing track with some polygon data like the following picture. However, it is not able to achieve gold with the above code. Any idea?