Rotation of several objects around y-axis
Hi!
I'm trying to manage to rotate several object around the same axis. Like they are part of a circle.
_____
| | ___
| | | | _
| | | | |_|
| | |___|
|____|
The objects should move around the y axis, always with the image facing the camera. Unfortunately I can't find any good formula for this.
Is this done using only glTranslatef(...) ??
Thanks
If you create a scenegraph, you can put all your objects into the scene as a child node of a transformation node that you rotate. When you render, just strip out the rotational matrix in your 4x4 modelview matrix to cause each object to face the camera while it moves around the Y axis.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement