View Full Version : tank rig problem in maya

03 March 2011, 10:15 PM
hello evry one

i have a problem about tank i make it and i start to rig it

when i rig some pieces i came to problem the "track tank"
i rig it by wire tool but...

1-how to control the speed of "track tank"by mel or by expression .


2- how to rotate te two "tack tank" it Means as a way to reverse rotation tank track by expression

iam sorry for my bad english


03 March 2011, 02:09 AM

The clip demonstrates an easy way to rig a tank track using wire deformer.
By using this method, the track need to be modelled in a perfect circle shape.

hope this helps.

03 March 2011, 02:19 PM
thank you MR -nuternativ-

but i use the wire tool , but the problem is i will rig this tank like the real tank
like the rotate the wheels in any direction in maya XYZ, and rotate the tread in any direction with out problem's with en expression or in mel script , because i try and try but I could not find a solution myself

thanks for evry one.

03 March 2011, 10:40 PM

This is my video to understand the problem (rotation problem)

and this my expression :
float $radius = 5;

float $Zval = ctrl.translateZ ;
float $Xval = ctrl.translateX;
float $distance = ($Zval * $Zval) + ($Xval * $Xval);
$distance = sqrt($distance);
float $rotation = $distance / (2 * 3.412 * $radius) * 360;

tank.rotateX = $rotation;
i hope to find a solution


03 March 2011, 10:11 PM
Where are the geniuses of Rigging

CGTalk Moderation
03 March 2011, 10:11 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.