Is this possible? Graphs

guillefaceguilleface Member, BASIC Posts: 1,014

So all I need is a line from point A to B, etc, thanks

Comments

  • adent42adent42 Key Master, Head Chef, Executive Chef, Member, PRO Posts: 3,054

    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.

Sign In or Register to comment.