#### Archived

This topic is now archived and is closed to further replies.

# A helix

This topic is 6442 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

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.

##### Share on other sites
a helix is a cirular path moving in a third dimension, so you could do something like:
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

##### Share on other sites
To simplify that it is just an object moving on a circular path (on the x-z axis), then you just increase y every frame to make upwards (helical) movement. I think that''s right...

Cheers!
~Dan~

1. 1
2. 2
Rutin
18
3. 3
4. 4
5. 5

• 14
• 12
• 9
• 12
• 37
• ### Forum Statistics

• Total Topics
631429
• Total Posts
3000035
×