question about rotation

Started by
2 comments, last by grassgrass 20 years, 1 month ago
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
Advertisement
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);
Give a man a fish and you feed him for a day; teach him to use the Net and he won't bother you for weeks.
thx
but what mean of "angle23"
angle23 is your 23 degree angle
Give a man a fish and you feed him for a day; teach him to use the Net and he won't bother you for weeks.

This topic is closed to new replies.

Advertisement