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
Hello
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
cheers,
John