Dynamically Mirroring Polygon Collision Shape in Godot

Hi Godot community,

I’m currently working on a project where I need to dynamically mirror a PolygonCollisionShape2D in Godot. I have a polygonal shape defined, and I would like to create a mirrored version of it at runtime. The idea is to have the mirrored shape behave like a reflection of the original, updating in real-time as the original shape changes.

I’ve tried exploring the documentation and various forums, but I couldn’t find a straightforward solution for dynamically mirroring a PolygonCollisionShape2D. Can anyone guide me on how to achieve this in Godot? Are there built-in functions or specific techniques that can be employed to accomplish this task efficiently?

Any help or pointers in the right direction would be greatly appreciated!

Thank you in advance.