Hi have decided to release my Ant Rig for you all to use and have some fun with!
Only Works in Blender 2.4X
Here are the rig controls:
How it works:
I have seen solutions that use heavy maths to calculate when to start the next step but for this solution I have adopted a much simplier method.
Each leg has a rest position “Master” and a “Target” Posistion. The Rest postion is Parented the to body so when I move the body the rest postion follows! The Target postion is not parented to anything so when you move the Ant is gets left behind.
This is where the python comes in, it works out the average distance the Targets are from the rest postions and when they are at 2 times the Max Distance they are moved to the rest postion. But to provent the legs from just poping back into place, I have assigned a Driver so that when the distance equals the Max Distance the leg starts moving to the Rest postion meaning by the time the leg is about to pop back the leg has just got back itself on a smoth curve!
To keep the timings correct Even legs are controled by the Odd Legs Driver and average distance, they only use the Target bones for location.
Hope that helps!
Plaese Read Instructions in the .Blend.