Tutorial Details
- Software: Cinema 4D
- Difficulty: Intermediate
- Completion Time: 30 - 45 min
- Additional Files/ Plugins: Mograph Module; Roll It (free plugin); Project Files
This tutorial will show the user how to rig a detailed tank track using Cinema 4d, XPresso, the Mograph module, and Roll-It — a free plugin. The final result will be a tank track that animates automatically as you move and rotate it.
Final Effect Preview
Step 1
Open the NAMETHISFILE.c4d file provided. It contains a track link already modeled.

Step 2
Drop the Link into a Mograph Cloner object (Mograph menu>Cloner Object). Set the Count to 60, the Mode to Linear, and the Displacement to 24m on the Z axis.

Step 3
Create a Bezier Spline object (Objects>Create Spline>Bezier), and draw out a spline similar to the one below. This spline was drawn from the side view (Press F3) and is roughly 600m long by 100m high. Be sure to click and drag when you create the new points to give smoother curves.

Step 4
Insert a Spline Wrap object (Mograph>Spline Wrap), and group it with the Cloner object by selecting both objects in the objects manager and pressing alt+G.

Step 5
Click on the Spilne Wrap object in the Object Manager. In the Attribute Manager, set the Banking to 270 degrees, the Mode to Keep Length, the Axis to Z+ and drag the spline from step 3 into the Spline box.

Step 6
Depending on the total length of your spline, the links will either have a gap or an overlap (overlap is pictured in this image).

Step 7
To remedy this, adjust the number of Count in the cloner object until you reach the closest fit without overlapping. From there, adjust the Z value to fine tune. In this case, the Count was reduced from 60 to 58, and the Z value was increased from 24 to 24.1. This closed the tiny gap that was left over

Step 8
If all is well, your track should look something like this. Now on to the wheels and rigging.

Step 9
Create a cylinder (Objects>Primitives>Cylinder).

Step 10
Set the Orientation of the cylinder to X+, the Rotation segments to 50, and the Height to 20.

Step 11
Move the cylinder into place and adjust the Radius setting so that it fits between your top and bottom tracks. In this example, the cylinder was reduced from 50m to 48m.

Step 12
Right click the cylinder in the object manager and select Make Editable (alternatively, press C with the object selected). Then, select the Phong tag and set the Phong Angle in the Attribute Manager to 22 degrees

Step 13
Go into Polygon mode and select the Knife tool (Structure>Knife). Set the Mode in the Attribute Manager to Loop, and make two cuts as shown below.

Step 14
Use the Loop Selection tool (Selection>Loop Selection) and select the ring of polygons in between the two cuts.

Step 15
Extrude the polygons selected (Structure>Extrude).

Step 16
Go into Point mode, select the center point of the wheel, and move it back by 10m. Hold shift once it’s moving to snap the movements to increments of 10.

Step 17
Create a Tube (Objects>Primitive>Tube). In the Attribute Manager, Set the Inner Radius to 10m, the Outer Radius to 15m, and the Height to 5m.

Step 18
With the Tube selected, use the Transfer tool (Functions>Transfer), and hover the cursor over the wheel. A line will appear between the Tube and the wheel. Click and the Tube will be transferred to the surface of the wheel.

Step 19
Create a Cylinder. Set the Height to 8m, the Radius to 2m, and the Orientation to Z+. Name this Cylinder “Bolts”.

Step 20
Insert a Cloner Object (Mograph>Cloner) while holding alt, and the Cylinder will be placed under the Cloner in the Object Manager. Set the Mode to Radial, the Radius to 12m , and the Count to 6. Name this Cloner object “Bolts Cloner”.

Step 21
As with the previous step, select the Cloner object and use the Transfer tool (Fucntions>Transfer) to center the array on the wheel by clicking on it, the rotate the Cloner by 90 degrees so it will line up with the wheel.

Step 22
Place the Tube under the “Wheel” object in the Object Manager. Then, select the Cloner for the Bolts and the Wheel object, and group them (Right click>Group or Alt+g). Name this group Wheel.1.

Step 23
Use the copy paste function to copy the wheel out. Once you have four wheels, select them all and duplicate them. Move this new group behind them and offset it as shown below.

Step 24
To build the gear, create a Cogwheel Spline (Objects>Spline Primitives>Cogwheel).

Step 25
Scale the Cogwheel Spline to fit in the path you’ve created, then in the Attribute Manager, adjust the number of Teeth to fit your path. In this case, the magic number was 13. The Inner Radius in this image is 45.6, while the Outer Radius is 55.8.

Step 26
Drop the spline into an Extrude Nurbs object (Objects>Nurbs>Extrude Nurbs) and set the Movement to 8m. Be sure to zero out the other Movement boxes. Position the gear to fit inside the stirrups.

Step 27
Select the Wheels, the Gear, the Spline, and the group that contains the Splinewrap and Cloner and group them all together. A good name for this group would be “Track”.

Step 28
Select all 8 wheels. right click them, and add a Roll-It tag. Roll-It is a free plugin and can be downloaded from the link at the top of this post. We’ll use Roll-It to automate the rolling of the wheels and gears, which will in turn deform the track.

Step 29
Under the Roll-It tag, manually set the Radius to that of your wheel. In this case, the wheel was 96m in diameter, so the Radius is set to 48. The Calculate function should not be used as the tag is on a null object and will always result in a radius of 0

Step 30
Add a Roll-It tag to the Cogwheel spline (not the Extrude Nurbs object). The Radius value for the gear is very tricky, and will be tweaked later on in the tutorial.

Step 31
Right click on the Spline Wrap object and add an XPresso tag. XPresso is Cinema 4d’s node based programming environment. It’s proven to be a valuable time saver and today we’ll build a very simple script.

Step 32
Double click on the Xpresso tag and you’ll be greeted with a grid. From the Object Manager, drag and drop the Spline Wrap object and the front-most wheel into the Xpresso window as seen below.

Step 33
Right click on the small red box on the wheel (this is the output box for your wheel) and add a Rotation.P port (Coordinates>Rotation>Rotation.P). Now right click on the blue box (input) on the Spline Wrap, and add an Offset port. (Object Properties>Offset). The Offset value controls the position of the track in its journey around the spline.

Step 34
Right Click anywhere in the XPresso grid and add a Math node (New Node>XPresso>Calculate>Math). Position it between the Wheel and the Spline Wrap node, and drag wires between the inputs/outputs as illustrated in the image. The output of the Wheel’s rotation is “carried” over to the Math node, which will hand it off to the Spline Wrap.

Step 35
The problem now is that the output of the Wheel’s rotation doesn’t translate directly to the Offset setting for the Spline Wrap. It has to be geared down, so to speak. Click on the Math node, and look over to the Attribute Window (below the Object Manager). Set the Function to Divide, and set the Input to 30. This is a number you will have to tweak, as it is affected by the length of the spline, the diameter of the wheels and so on.

Final Tweaks
The last step is to tweak the values of the Math Node to ensure that the track sticks to the ground and doesn’t slide forward or backward when moving the parent object. The value of the Radius in the gear’s Roll-It tag should also be tweaked to match up with the track. In this case, it was reduced from 55m to 51.5m to match the speed of the track.
All that is needed to animate the track and roll the wheels is to move the parent object (named Track in this tutorial) forward or back. This group can also be dropped into a larger parent object such as a tank and will animate automatically

Further options
An optional addition to the rig is to add a Morph Tag (Right click>Character Tags>Morph) to the Track Spline, and to set a Morph Target of the spline straightened out as shown below. This is achieved by simply moving one of the points on the spline upward. On larger vehicles such as tanks, the heavy metal tracks straighten out like this when the vehicle accelerates or suddenly hits the brakes. The Morph Target value can be keyframed to work this into your animations. This step is mostly unnecessary for smaller, rubber tracked vehicles such as robots.

Don’t miss more CG tutorials and guides, published daily – subscribe to Cgtuts+ by RSS.
Very nice tutorial!
It seems that C4D 11.5 can’t see the roll it plugin…any solution?
I had the same problem, but i geus you tried to start the 11.5 64 bit version right?. Try use the the old one 11.5.
BTW nice tutorial and nice plug in:) its only a pain in the ass to set the cogwheel right:(
Nice one. I’ll be trying it soon. Thanks Patrick.
On a sidenote, I’ve noticed that unlike the cgtuts+ and nettuts+, a couple of the other sites’ home page don’t load with the most current postings and I’m not seeing anything obvious to switch it to most recent postings except the popular this month box.
Same problem here with Cinema 11.5 and Roll It plug-in
Indeed, troubles with the RollIIt plug in C4D 11.5 64bit on Mac OS X 10.5.8
Anyone some suggestions?
Roll It is working fine for me in 11.5 (Windows 7 32-bit).
Hi guys
Since i wrote this tut on windows using 11.5 32bit, i can’t comment on compatibility issues with the 64 bit version. You could try it with the 32 bit version maybe?
Great tutorial Patrick! I’ve been struggling to find an elegant way to accomplish tank tracks, and you’ve done it! I look forward to your next tutorial.
Id kinda like to see how you made the track piece :)
The Rollit plugin appears into Cinema 4D 11.5 on Windows 7 64bit only if I launch the 32 version of the software. Fair enough.
Ok…I’ve got a problem. All the wheels’ nulls in my scene have the axis offset, not in the center of the wheel but in the lower right corner, so the wheels don’t turn properly…how can I make it to be in the center of the wheel? I’m struggling with the “Axis to” function!
nice tutorial but…
Same problem cinema4D 11.5 64 bit MAC OSX…
I can’t see roll it plug in…
any solution?….
I thinks its maybye because its a c++ plug in. “windows code” that might be it.
nevermind just looked at download page hmmm if i get it working ill post it
Awesome Tutorial, easy to follow!
I also had problems with the Roll it, looking in the Plugins tab , not realising it’s a tag you add by right clicking the object.
Also my track was moving the opposite direction. I guess I’d put the orientation of my wheels the wrong way round.
So I thought a Invert node would work, but that made the track go ape shit.
Instead adding another math node, set it to multiply with a value of -1 sorted it out! Sweet!
Thanks for that!
hello, i tried this tutorial, but at the end, the track turns one direction with the weels, then stops and turns one turn the other way, got any idea why?
http://www.c4dcafe.com/ipb/index.php?/files/file/533-tank-tracks/ Nuff said
For all yous whose having problems with the Roll It plugin, it doesn’t work with 64bit Cinema but with 32bit so just load ya 32bit! Plus, it ain’t under plugins, its a TAG!
GUYS! I am 64 bit and i but the Rollit in my plug ins folder.I also started 64 bit Cinema 4d and the regular 32 bit and it still isnt at the TAGS menu.Please help this is a very important tutorial for me!
All of the clones are stacked on top of each other and I can’t figure out how to set “Displacement to 24m on the Z axis” from step 2
Pretty amazing effect. I totally love it!!
Nice tutorial, but the track doesn’t move in any direction at the end, only the wheels and gear. What could I do? I’ve done it as described.
Thanks
Hot tutorial! – But am I dammed if I can import a tag!
Keep up with the tutorials, they are good!
I’m not the best at C4D and found it a bit difficult to follow the tutorial, could anyone who’s been successful please post a link to their project file because I really want this for a project of mine
Hi,
This tutorial helps out heaps, thanks. Been using rollit and didnt even think to use it with the track setup I had to do. But one issue, seems that the tracks end up at different spots every time, What i have to accomplish is to have a “master link” end up in a certain location but everytime I render it the location is different, but the animation looks like it is going smooth and the track isnt “floating”
Thanks so much for this tutorial. I’ve learned so much.
Hi all ..! .. I have a problem at the time of the object to clone clones all I stacked one on another and not find a way to change direction