Hi, I’m pretty new to Corona, and am having trouble with adding physics to lines being drawn by the user, I’m basing the line generation off of this code
[lua] function drawLine( event )
if(event.phase == “ended”) then
line = display.newLine(event.xStart, event.yStart, event.x, event.y)
line:setColor(255,0,0)
line.width = 5
end
end
Runtime:addEventListener(“touch”, drawLine) [/lua]
so all of my lines will be different lengths, directions,rotations and whatnot, my question is how do I set up a physics shape around the line that wont include extra space? I’ve tried setting up my own shape for it but i can’t seem to get it right, or even close to right [import]uid: 80180 topic_id: 13856 reply_id: 313856[/import]
