Draw shape to screen and make it use physics

Hey all, can anybody give me some pointers on this.

I’ve been looking at Karnak Games’ Corona SVG Level Builder http://karnakgames.com/wp/corona-svg-level-builder/ and wondered how they are converting all those curves etc. into pixel perfect physics bodies in LUA code - in the Corona API I can only find docs related to applying physics bodies to sprites and the like, but not ‘1d’ lines/curves.

What I’d like to achieve is: the player swipes the screen and a short-ish line/curve is drawn under where they ‘drew’ with their finger. The line/curve gets physical properties for a few seconds then can disappear. How would I approach that, or is it indeed possible?

I guess I could just buy SVG Level Builder and try to dissect their libraries, but don’t want to build whole levels, just the above.

Thx. [import]uid: 8496 topic_id: 22844 reply_id: 322844[/import]

You mean something like this?

http://developer.anscamobile.com/code/gerald-anderson [import]uid: 31262 topic_id: 22844 reply_id: 91289[/import]

Wow, thanks @aaaron - I’ll have a read. [import]uid: 8496 topic_id: 22844 reply_id: 91316[/import]