Rigid body gears

Hi,
I am playing with the rigid body physics by making gears, But I can’t figure out how to link anything to make one turn so it will interact, like it does when I rotate it live, I have tried making rotations in key frames but it ignores it (I assume).
Does anyone know the easiest or best way of doing this?
Help will be much appreciated as it could form part of a larger project.
Thankyou

I have tried making rotations in key frames but it ignores it (I assume).
If you want to use animation in the rigid body simulation you will need to enable the ‘Animated’ option


Thank you for your fast response, that’s spot on.