How Did Max/Magic Marker Draw a gameobject??

I want to give the user the power to draw a line which will have physics and/or collider properties. I’m not trying to make a Max and the Magic Marker remake, I’m just inspired by their gameplay and want to achieve this effect for myself. I’ve looked at the line renderer and the trail renderer, but these will not help me. Does anybody have any suggestions? Thank you

For those who do not know, Max and the Magic Marker is a platform game for the ipad where you can draw your own gameplay objects onto the screen with your finger

The first step is something like vectrosity, you can just capture the touch positions and drag out a line. Because you have this series of lines you proceed to making box colliders, using atan2 to orient and the distance for scale. There’s nothing magic - it is just generating a mesh and then generating colliders.

thats a great lead, thanks. I didnt know calculating with atan2 and distance could create colliders, though. assuming i make those calculations, how do I get the line to become a collider? is there a function for that? Thats what I’m most concerned about