Spirograph

So I’m trying to make a Spirograph game. How would I program the gears to work right?

have a look at this physics demo at
http://www.bulletphysics.com/Bullet/…php?f=11&t=752
Download the http://www.continuousphysics.com/ftp/pu … iles-5.zip file ( I think that link won’t work) and try the gears demo

The gears can be a bit of a nightmare because the axis of the objects and constrains have to be exactly right so copy the demo.
Also - I would like to see a spirograph game so keep us posted

Thanks for the links, I’ll try to keep you posted but it’s going to be a long time before I make any real progress.
I don’t understand the first one, and I can’t get to the second, sorry.

So here’s what I have for gears so far.


But there’s gotta be something better. Help please!