Jump to content

Phaser 3 Capture canvas at specific coordinates


Raghvendra Singh
 Share

Recommended Posts

Hi All,

Below is my project url please visit  

http://111.93.53.134/digital/test/polygon/

Now my question is that i am creating a polygon at run time and add physics to polygon. When the polygon collides with matter body a horizontal redline is drawn and when i click on the down arrow button then another metal spring collides with polygon shapes then a blue line draw and you can drag the blue line.

So i have to take the snapshot of only that polygon and redline which is beneath the polygon  and that blue line which is being dragged and show them in the grid box 1,2,3,4. The polygons can be rotate as well by middle button when the spring metal is not collides with the polygon.

I have tried several ways to figure this out but not able to fix the snapshot . I am attaching the image that what i actually want.

And please tell me a way to make the polygon shapes more steady while rotation.

 

Thanks,

Raghvendra 

Layer_6.png

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...