Jump to content
  • Advertisement
Sign in to follow this  
arcooke

Gears - Design and implementation.

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

Gears are in tons of games, and they've always been sort of a mystery to me. From designing them (2D or 3D) so that the teeth line up no matter the size of the gear itself, how fast to rotate them so that they always appear interlocked.. etc. Gears are so simple on the surface, but pretty complex once you really get down to it. I would imagine the rotation speed of gears would have something to do with the ratio of teeth between the connecting gears.. but this is just a hunch. Then there's the whole problem of designing them. You can create a large gear that has 50 evenly spaced teeth, and a smaller gear that has 20 teeth.. but somehow they have to be designed so that the space between each tooth on the smaller gear matches the width of the teeth on the larger gear and vice versa. I really don't know how else to explain it. Has anyone ever stumbled across any info about this topic? Example http://img297.imageshack.us/img297/1925/42271873ma3.png

Share this post


Link to post
Share on other sites
Advertisement
There's some math going on, of course, but it's relatively simple math. Two gears that work on each other will need equally sized teeth (or at least, teeth that grip into each other tightly), but the number of teeth depends on their diameter. Their speed ratio is the inverse of their diameter ratio: when the first gear is 3 inches tall, and the second 5, the first has to make 5 cycles for every 3 cycles the second makes.


However, how precise you need to model or otherwise implement gears really depends on the situation. For most games, they're just background details: it doesn't matter too much if they're off a bit. For a gear simulation, it's obviously more important to get them done right.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!