A helix
Can someone tall me how to make an object move along a helical path, prefereably around the Y axis, in terms of glTranslate? This would be very much appreciated.
"Well I tried my best, but the damn thing just sits there..."
a helix is a cirular path moving in a third dimension, so you could do something like:
where A and B are constants, and t is time (and hence increases)
hope that helps!
alistair
x=cos(A*t);y=B*t;z=sin(A*t);glTranslatef( x, y, z);
where A and B are constants, and t is time (and hence increases)
hope that helps!
alistair
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement