I know that this is an old thread, but I figured instead of starting a new one, I would just tag on!
I am trying to keep a pedal rotating with a bike gear, but still face upward so that the foot can rest on it. I am getting ready to dive into Duik or Dan’s IK expressions for the legs, and I have all of the wheels and gears going nicely with Carl Larsen’s Vehicle Rig expressions.
However, I cannot get the pedals to stay upright! I have tried this expression you suggested: “value – parent.transform.rotation;”. I am unsure exactly where to put it though. Rotation? Position? I have a null that is parented to the pedal “bar”, which is parented to the gear. The pedals are parented to the nulls.
Help? Thank you!