Hi Guys:
I hope to get an inverse matrix through two points, and then give this matrix to my model. So far, I have got two "vectors (point postion)". I'm sorry, I'm a novice in c++ and I'm confused by multiple matrices. I hope to get good results like the example below. :disappointed_relieved: Thank you
v@my_y = normalize(@P-point(1,"P",0));
v@my_x = normalize(cross({0,1,0},v@my_y));
v@my_z = normalize(cross(v@my_x,v@my_y));
3@mm = set(v@my_x,v@my_y,v@my_z);
@P *= invert(m);
SetModelingAxis
Vector up = Vector(0,1,0);
Vector yPos = Normalize(point1Pos-point2Pos);
Vector xPos = Normalize(Cross(up,yPos));
Vector zPos = Normalize(Cross(xPos, yPos));
edited by @ferdinand:
@Neekoe said:
I want to customize my axis through this method, thx :face_with_cowboy_hat: