Advertisement

gluCylinder - aligning!

Started by February 09, 2002 03:43 PM
-1 comments, last by Iain Toft 23 years ago
A normlised direction vector (x,y,z), a position vector (x,y,z) and a length. Defines the two points in space. (position.x, position.y, position.z) -> (position.x + direction.x * length, position.y + direction.y * length, position.z + direction.z * length) What gl transformations are needed to align a gluCylinder along the line? Many Google posts have very conflicting ideas anyone here know the (correct) answer!? Cheers, Iain -= Iain > Chad < Scott =-
-= Iain > Chad < Scott =-

This topic is closed to new replies.

Advertisement