back with another questions, people here are really helpfull with explaining stuff so here i go.
i'm following a tutorial, the guy said its done for unity at the end, explaining that unity uses the z-axis as forward (something like that)figured out unreal uses the x-axis for this (hope i'm still right until this point)
so instead of building in the z-axis direction, i'm building in x-axis direction.
at this point everything worked fine.
i made 2 points, 1 in the center and one in the positive x direction.
copied and centered 2 lines on the points. at this point my lines are twisting around their own axis.
it took me a few hours to figure out why it was doing it for my project, and not in the tutorial project file.
so this only happens when pulling the point over the x axis, it keeps twisting more the higher i go.
……
so i had this sort of genius moment while writing this and fixed it myself

but still gona make a post about it because i have some question left and its not clear for me why this happens.
i had this same problem when copying a object on a line, at every point it started twisting more, so someone gave me this nice code to fix it with attrib wrangle node:
int nn = neighbour(0,@ptnum,1);
vector xx = normalize(point(0,“P”,nn)-@P);
vector yy = normalize(cross(@N,xx));
xx = normalize(cross(@N,yy));
v@xx = xx;
v@up = yy;
now i did this again and it looked better already, pointing the line i copy to points in the Y-axis fixed it and now it works fine.
so cheers for me to fix it myself lol.
but can someone please explain me WHY this happens?
- why does this not happen of the Z-axis (and maybe Y-axis?)
- why does it happen over the X-axis?
- what does the code do to fix this?
- why can i use a line object placed on the y-axis as a horizontal object all of the sudden with this code and why when i change the axis to X or Z they don't keep their horizontal place.
sorry for allot of questions but i'm trying to figure out for a while now why this twisting is happening sometimes so i can understand and know where to look.
sorry if things are not really clear in my way of writing. and if u have a link with info about this, its fine to. dont mind reading.
thanks in advance for reading and answering.
