So all I need is a line from point A to B, etc, thanks
Comments
adent42Key Master, Head Chef, Executive Chef, Member, PROPosts: 3,170
So you'll need to spawn actors using the following settings:
Vector = subtract the x of the two points and the y of the two points.
Length = use the pythagorean theorem formula on vector components. Set the actors y to the length and x to 1.
Angle = use vector to angle on the vector components to rotate the actor
Position = (x / 2) + a.x, (y / 2) + a.y (a being the left most point).
Do that over all the pairs.
Probably the easiest way would be to store each point in a table and then use loop over the table and spawn in the loop. At least that's the general idea, you might need to adjust the specifics a bit.
Comments
So you'll need to spawn actors using the following settings:
Vector = subtract the x of the two points and the y of the two points.
Length = use the pythagorean theorem formula on vector components. Set the actors y to the length and x to 1.
Angle = use vector to angle on the vector components to rotate the actor
Position = (x / 2) + a.x, (y / 2) + a.y (a being the left most point).
Do that over all the pairs.
Probably the easiest way would be to store each point in a table and then use loop over the table and spawn in the loop. At least that's the general idea, you might need to adjust the specifics a bit.