gluCylinder - aligning!
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
Popular Topics
Advertisement
Recommended Tutorials
Advertisement