How to add a Path to physics engine?

I’m using the matter physics engine and would like to collide GameObjects with a Phaser.Curves.Path. Any advice? Do I need to somehow decompose it into vertices?