I imagine a constraint in which bone ‘B’ rotates x degrees on its Y axis for each 1 BU bone ‘A’ is translated +Y (and inversely, rotates -x degrees for each 1 BU translated -Y). This way, wheeled vehicles could be set up and animated purely with armatures. Is this feasible?
I, and I’m sure many other mathematically challenged animators, would be very grateful if any of the forum’s coders would be so kind as to help us out by spending a few minutes implementing something like this.
I once coded a pydriver that allows you to drive a cube using an empty. It works in both x and y directions. Note that the current version works properly only with full rotations in x and y. It seems just some simple extra logic (just check mod) for missing cases. You can find it at http://bebraw.googlepages.com/rollingcube5.blend .
You will notice that the rotations have been corrected using 5.74 as a correction factor. This is due to mismatch in the way IPOs and the Python API work. This is not a bug. (I reported it as one. :)) It’s more of a known limitation. Just keep this in mind when using rotation drivers.
Anyway coding a driver for wheels should be fairly trivial. Just refresh some elementary maths a bit and you should be fine.