



(1 ratings)
Getting Accurate Distance Measurements
The first thing you need to do before we get started is to group everything accordingly. Notice below, I have a group for each individual tire, a group for the car body, and a main group consisting of everything.

Once everything is grouped, all we really need to do is use the set driven key to animate the wheel rotation, but first we need to figure out how far the car must travel for the tires to go a full 260 degrees.
NOTE: If you want to be precise with the rotation, here is a formula you can use:
(Px2) + Radius = Distance
Once again, use the distance tool to figure out the radius of the tire. To use the distance tool go to create > measure tools > distance tool.

Go to create > measure tools > distance tool.
Click on the bottom middle of the tire to get a start point.

Click on the top middle for the end point and press enter. You can see I have a radius of 4.16
Now plug that into the equation above and we get the following:
(Px2) + Radius = Distance
6.28 + 4.16 = 10.44
Now we know that when the car travels a distance of 10.44 the tires should rotate 360 degrees.
So now we will use the distance tool one more time (create > measure tools > distance tool). Then click near the bottom middle of the front tire, then click and drag the end point a distance of 10.44 away.
After going to create > measure tools > distance tool, click near the bottom center of the tire to get a start point.
Then click and drag until the distance says roughly 10.14.


Now we have a guide as to how far the car needs to travel for the tires to rotate 360 degrees and we can now start using the set driven key to animate it.
Animating the Rotation of the Tires
Go to Animate > Set Driven Key > Set [options box]. This will open the set driven key box where we can start working.


Now, for this we have the tires as four individual groups, the car’s body as a group, and everything together as a main group. So the Driver would be the main group (this is what will affect the tires rotation) and the Driven would be the individual tires (this is what is being affected).
Select the main group and in the set driven key window, click load driver.

The car will be translating along both the X and Z axis, but we have to do each individually. So for now we will do the Z axis so Select translate Z to the right of the driver.

Now we will set the driven (the tires). Select all four tires, then in the set driven key window click load driven.

When the car moves, we want the tires to rotate around the X axis. Now select all four tires in the driven section, then the rotate X to the right of the driven.

Now just press the Key button to set the keyframe for this position and rotation.

We have now just keyed the beginning of the tire rotation. Now we need to key the end effector.
Select the main group and move it so the front tire is at the end distance we calculated.

Then select the four tires and change the X rotation in the channel box to 360.

Then go back to the set driven key window and press the Key button.

We have now just set the beginning rotation and the end rotation after the cars movement. Close the set driven key window, select the car and move it along the Z axis to test the results.
You will see the tires rotate, but only for that short distance we set it to. We need to cycle that rotation to an infinite amount.
Select all four tires and go to Window > Animation Editors > Graph Editor. Then select all the curves in the window.


Now we want to cycle the before and after rotation to an infinite amount. So go to Curves > Pre-Infinity > Cycle. This will cycle the before motion. Then go to Curves > Post-Infinity > Cycle. This will cycle the after motion.


That is it. Now close all the windows, select the car and drag it back and forth along the Z axis and the tires will rotate accordingly. Notice, if you move the car slow, the tires rotate slow. If you move the car fast, the tires rotate fast.
The only other thing you would need to do is set the rotation of the tires for the X axis as well because chances are that the car will not only be moving along one axis. To do this, simply rotate the car 90 degrees along the Y axis so it is facing the X axis, then repeat the steps above. NOTE: The only thing you will need to do different this time is change the Driver to translate X instead of Z like before. Everything else, including the rotation of the driven remains the same.
20 Random Tutorials from the same category :
Ambient Occlusion in Maya8 and Photoshop
Making of Male Green Frog
Making of Trapped
Making of Tiger Zoo
Creating Gears In Maya
Final Gathering in Maya MentalRay
Falling leaves with nCloth and Paint Effects
Creating a Spaceship Fleet Using Particle Instancing in Maya
Rotating Wheels on a Car
Character Rigging In Maya - Part 1
Sprite - Based Particle Trees
Character Rigging In Maya - Part 2
UV smoothing in Maya
Simple Method of Creating a Diamond in 3D
Sunbathing - American Alligator 3D Modeling
Breaking Subsurface Scattering into Render Layers in Maya
Getting started with Mental Ray's Final Gather
Object spreading methods using Maya
Rendering a Z-Depth Image Fast
Making of Varga In MAYA
Help me out to work more better with mentalray with some awesome tutorials... Please...














