(2019-03-24, 19:31)Roland Melkert Wrote: What are you trying to do?

Because you can't build a matrix from just a line segment without assuming some other stuff.

You'll need at least two vectors perpendicular to each other for this.

In LDCad's path generator I use the world Y axis to find the second but it depends on your situation.

Assume the wold axis in this case. Assume P1 is the axis origin (0,0,0) in the LDraw standard world space. I can even figure out the direction angles but for some reason I'm not grokking what to do next. it's annoying me that I'm missing something so basic.