Hi im trying to work out if collision detection is possible with poly lines, like so:
local missile = display.newLine(originX, originY, targetX, targetY)
missile.id = "laser"
physics.addBody(missile, "dynamic", {isSensor = true})
Now it seems to me it is not working at all but i may be wrong but from tests it seems to not fire collision events with other physics objects. Yet what is strange is when isSensor is set to false it does interact with other display objects movement wise, eg bounce.
Can anyone please confirm that collision events do work with polylines or do. I basically want to create a laser beam type effect, im hoping i dont have to use a rectangle. many thanks. [import]uid: 118379 topic_id: 21483 reply_id: 321483[/import]