View Full Version : Heading in right direction

05-05-2000, 05:17 AM
I have a little problem. I made a very simple program that only displays a triangle pointing up. I want to rotate it along the y axis and want it to move in that direction where its pointing. I know how to rotate it
using glRotateF.. but when i want to move it in that angle i dont know how to do that..

Please help me anyone! =)

05-06-2000, 07:34 AM

I donīt know if I got you right, you want to "translate" (position / move) the triangle?
Then you have to use the command:
glTranslatef(xpos, ypos, zpos);