I'm in the midst of rigging a tank and have run into an issue with my treads.
I have rigged the wheels based on circumference so that they rotate at correct speed in relation to the translation of my main node.
The issue is related to the script that I applied to create the treads, which I got off of the internet. The script I used for the treads is based on a speed attribute that runs constantly as long as the timeline is running. 0 being stopped, positive moving forward, and negative moving in reverse.
The problem being that it means I need to match the speed of the treads with the translation of the main node, so that the wheels and treads move at the same speed.
My treads are following a curve I have made and I was wondering if there is an expression that I can put into effect that would allow my tread pieces to follow the curve I have created at a speed based on the translation of the main node.
This is where I got my current tread script:
And this is the script I have on the wheels at the moment:
BigWheelFR.rotateX = Main_Controller.translateZ / (0.680529*3.14)*360;
If anyone could help I would greatly appreciate it!