|
|
dang!
I thought I noticed this before, but you're right.
I find four new corners for the cars based on the rails and then use this
reorient macro:
#macro AlignToRect2(pAb, pAf, pBf, pBb) // by Charles Fusner and Slime
#local newz = vnormalize(pAf-pAb);
#local newx = vnormalize(pBb-pAb);
#local newy = vcross(newx,newz);
#local avey=(pAb+pAf+pBf+pBb)/4;
matrix <
newx.x,newx.y,newx.z,
newy.x,newy.y,newy.z,
newz.x,newz.y,newz.z,
avey.x, avey.y, avey.z
>
#end
Post a reply to this message
|
|