Newbie needs help with collision detection

Hi everybody.  Long-time programmer, new to Corona.  Here’s my problem.

I’m doing local collision detection.  I have many objects, all circles, on the screen.  Each has an EventListener.  No problems there.

I have a button (widget).  When the button is pressed, it creates a line on the screen.  The line is added with newLine, and added as a physics body.  This occurs in the onRelease function.  No problems there.

The problem is that collision detection between the circles and the newly created line doesn’t seem to work until there is some other event involving the circles.  I need to know immediately, within the onRelease function, whether the line has touched the circles.  Any suggestions.

Thank you in advance!

Lines are really too thin for Box2d physics to work with.  A display.newRect() a few pixels wide should do the trick.

Rob

Lines are really too thin for Box2d physics to work with.  A display.newRect() a few pixels wide should do the trick.

Rob