PDA

View Full Version : Heading in right direction



Cheech
05-05-2000, 04: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! =)

Diapolo
05-06-2000, 06:34 AM
Hi!

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);

Diapolo