question about rotation
dear all,
using following function for rotate On The Y-Axis By angle
glrotatef(angle, 0, 1, 0)
but if i want to roate 23 degree from Y-axis, just like the situation of earth self rotation, how can i do?
thanks
You might want to rotate your y-axis around the z-axis first.
In your case this might work:
glRotatef(angle23, 0.0, 0.0, -1.0);
In your case this might work:
glRotatef(angle23, 0.0, 0.0, -1.0);
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement