saiwa

01-26-2007, 07:56 AM

I need to align a cylinder to a vector. In other words I know the coordinates of the vector starting (x1,y1,z1) and ending point (x2,y2,z2), and I would like to create a cylinder that is appropriately rotated in order to have a base centered on the first point and the other base centered on the second point. (The cyclinder is not a mesh, but a primitive object)

I'm relatively new to maxscript, and it seems I cannot solve this problem alone... any advice will be greatly appreciated.

Thanx, Saiwa

I'm relatively new to maxscript, and it seems I cannot solve this problem alone... any advice will be greatly appreciated.

Thanx, Saiwa