Hi all guys,
I need some help, i d like to draw a line and then make it become a dynamic physic body . I ve been triying for a week but cant really get a solution. The problem is not about drawing the line the problem is about the physic.
If i a draw the line with display.newline and i use line:append, i can apply the physic body but it must be static.
if i do a series of circles and put it in a display group, when i add the physic body to the group the pshyic body isnt a line but a square or a rect.
If i create single circles and then i use weld joint to block them with the next one, the joint isnt strong enough to keep the line of circles rigid. it becomes a worm-like.
if i try to create a polygon i store every x and y in an array when Phase==moved then when phase== ended reverse this array and add it to the other array creating the outline of my shape. the shape is invalid because there is a hole or the points are doubled (is this cause it has too many points?)
I m thinking about creating a physic multi element body dinamically my answers are :
is it possible? to create adding N shapes to my phisic body?how can i do it?
The methods i ve tried are coded bad or are just impossible?
is there another way to do this? Thank you for your help. (is this a newbe question?)