View Full Version : tank rig problem in maya

 polo3d03 March 2011, 10:15 PMhello 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 . and 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 thaks
nuternativ
03 March 2011, 02:09 AM
hi,

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.

polo3d
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
http://img105.herosh.com/2011/03/17/530826274.jpg
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.

polo3d
03 March 2011, 10:40 PM
HI,

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

and this my expression :
*********************************************

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

thanks

polo3d
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.

1