i’m trying to add line to physics, result is interesting and i’m not able to continue and find a workaround
please have a look at below image
and below is code
local ll1 = display.newLine( 110, 268, 260, 268 )
ll1.width=8
ll1:setColor(255,245,0)
local lgr = display.newGroup ( ll1)
physics.addBody ( lgr, "static", {density=1, friction=.5, bounce=0})
the reason for using lines is that i want to add ground to my game screen
which is read from svg file, a set of points as polyline
looking at this result, i’m now confused what vector graphics i have to use
is there any way i can make complex physics structure without using image
suggestion and help is much appreciated
[import]uid: 97420 topic_id: 17416 reply_id: 317416[/import]