View Full Version : rotating objects

08-01-2001, 06:48 PM
is there a way to connect two rotating objects rotating around a different axises with a line. This line will be growing and shrinking depending on where the rotating objects are. How can i do this

08-01-2001, 07:47 PM

since you know

- the anchor point on the two objects that the line connects, and
- how these objects are rotating, you can therefore
- construct a rotation matrix to represent the change in coordinate system and use this to compute
- the new coordinates of the anchor points, which you can feed into
- glBegin(GL_LINES) to draw a line