Rigging And Steering A Simple Car In Cinema 4D R12

Rigging And Steering A Simple Car In Cinema 4D R12

Tutorial Details
  • Software: Maxon Cinema 4D
  • Difficulty: Intermediate
  • Estimated Completion Time: 1 Hour

Final Product What You'll Be Creating

Thanks to Cinema 4D version R12, which just released before the brand new R13. We are able to rig and drive a car quickly and easily. In this tutorial, you’ll learn how to model a simple car, then you’re going to have two options to play with using your rigged car. Either steering it as you wish, or smashing it through a wall with an added slow motion effect. All achieved right here in the Cinema 4D.

Republished Tutorial

Every few weeks, we revisit some of our reader's favorite posts from throughout the history of the site. This tutorial was first published in October of 2011.


Final Effect Preview



Step 1

To start. create a "Cube", and then by using the “Extrude Tool”, create the shape shown.


Step 2

Next select the rear top surface and extrude it using "Extrude Inner", then extrude the surface inwards as shown below.


Step 3

Extrude the front top part and using the "Edge Tool" manipulate it into a windshield shape.

Step 4

Extrude the front part out as well, to create a hood.

Step 5

Now select the "Edge Tool" and then use the "cmd+A" (ctrl+A) key combination to select all the edges. Now "Right Click" on the object and select the "Knife" Tool.

Step 6

In the "Attributes" menu, select the "Loop" mode and then cut two new loops into the surface for the head lights (imitate the example shown.)

Step 7

Select the rectangle areas, extrude inner, then extrude normally (as shown.)

Step 8

By following these simple modeling techniques, shape your own car. Since it may take too many steps to shape the car little by little and the actual intent of this tutorial is not modeling a car, I’ll skip this part and leave it to your own talent.

Step 9

Also create a wheel for your car by using simple shapes, and techniques we went through on the previous steps. Here’s what I got.

Step 10

Now the important part is coming. We’ll be attaching the wheels to the body, so go to Simulation > Dynamics > Connector.

Step 11

Now select that connector and the tire on the object tree, then follow the menus shown in the following picture. Through this command you’ll be positioning both wheels and the connector at the same middle point. Trying to do this manually may cause problems with circular motion, since you might not find the exact center of the wheel.

Step 12

Now again select the connector and the wheel, then using the "Cmd + A" (ctrl+A) key combination, package them together in a "Group" object. And thus you won’t spoil the positioned objects while moving them.

Step 13

Position the wheel as you wish, then select the "Connector" object. Under "Attributes", you’ll see "Object A" and "Object B" sections. First assign the Body of the car to "Object A", and then the wheel to "Object B". That’s important, if you do it the other way around it may lead to problems. After the assignment part, choose "Wheel Suspension" as the "Type".

Step 14

Now select both the body and the tire, and add a "Dynamics Body" tag.

Step 15

Now just copy the wheel three times and position them as shown. Since you set everything beforehand, you don’t need to set everything up again for each one.

Step 16

Create a new "Floor" object and assign a "Dynamics Body" tag to it as well.

Step 17

If you hit the Play button, your car will probably fall onto the ground as if there is no suspension. To adjust the problem, select all the "Connector" objects and set the "Suspension Stiffness" to something around 10. Also by playing with the other suspension options, you can get what you want. But don’t touch the steering angle, we’ll cover it later.

Step 18

Now our car is ready to get a motor. So, create a motor object (Simulation>Dynamics>Motor) and then duplicate it.

Step 19

Select one of them. And again as we did on the "Connector", assign the car body to “Object A” and one of the wheels (which you would like to accelerate) to “Object B”. Apply the same to the other motor, this time use another of course.

Step 20

When you click on the play button, you empower the motor. It will be turning, but the car won’t accelerate as it should and will look like it’s sliding on oil. That’s simple physics. Due to the lack of proper friction it can’t catch the ground. So, simply by increasing the friction this problem will be solved. Select all the "Dynamics Body" tags and under the "Collision" tab, increase the friction to 150%.

Step 21

Now select both of the Motor objects and under the “Object” tab, set any value you wish for the “Torque” section to determine the speed of the car.

Step 22

If you wish to drive your car straight, it might not be possible (even though your wheels stay straight). I suppose this is due to the random nature of the Dynamics. So, to solve this problem, here is a little trick. Select the "Dynamics Body" tag of the car’s body object. And under the “Force” tab, there’s a section called “Follow Rotation”. If you set that to approximately 10, your car will be fine and should go straight.

Step 23

Another important and useful feature is steering, of course. To steer our wheels we are going to use the Connector Objects we assigned to the front wheels. Choose those Connector objects and under the "Object" tab, you’ll see the “Steering Angle” section. If you change it at the beginning your car will fail and the wheels will move oddly.

Step 24

Now switch to the "Animation" layout. Again choose those front Connectors and while the "Steering Angle" is set to a value of 0, add a keyframe by keeping the “Cmd” (ctrl) key on your keyboard pressed. Click on the little rounded square icon near the “Steering Angle” section as shown below.

Step 25

Now slide the green time indicator needle to the right until you find the frame where your wheels will steer, and then add another keyframe. Still the value is 0.

Step 26

Now select all those keyframes on the timeline, and set the selected keys to "Linear Interpolation" by clicking the button indicated in the picture below.

Step 27

After a few frames add another keyframe, but this time change the value of the "Steering Angle" (do this before adding the keyframe!). The further away the keyframe is placed, the more time will pass for the wheels to turn. WARNING! – Reset the "Follow Rotation" value ,which we increased for car to go straight. Otherwise your car won’t turn properly and will slide on the wheels instead.

Here’s my final steering result!


Second Possible Result!

If you would rather smash your car through a wall with a slow motion effect, then keep reading

Step 28

So far we covered the steering of car. Now we’ll do something much more fun. Smashing a wall with a slow motion effect. Copy your project to another new scene or delete the keyframes you created.
Start with a cube object and check the "Fillet" option, make it a little rounded.

Step 29

Create a new "Cloner" object by going to Mograph>Cloner, and set the correct settings to create a row of bricks horizontally that you’re happy with.

Step 30

Create another "Cloner" object and make the previous one a "Child" of the new one. This time align the bricks vertically. After you’re done, select both of the "Cloner" objects and make them "Editable".

Step 31

Now "Right Click" on the Group file which remained after making them editable, and select all it’s "Children".

Step 32

With all of them selected, assign a "Dynamics Body" tag to the Group. Thus you’ll be assigning it to all of them.

Step 33

Now position your wall a certain distance away, and set the best torque value for your car. Hit "Play" and the car will destroy the wall. However we’re not done yet.

Step 34

Switch to the "Animation" layout. Then by using the “cmd + D” (ctrl+D) key combination on your keyboard access the "General Dynamics" settings.

Step 35

Here we’ll use “Time scale” to create the slow motion effect. Now move the green needle to where you want to start slowing things down, then add a keyframe to the “Time Scale”.

Step 36

Go to the next frame, right near the keyframe we added. This time change the value of the "Time Scale" before adding the keyframe. Change the value to 10 (or anything you like) then add a keyframe.

Step 37

Add your next keyframe where you want to stop the slow motion effect, don’t change the value, leave it as you set it before.

Step 38

Add the last keyframe on the right side of the previous one, but with a value of 100. Then select the two keyframes which were set to 10 and in between the outer two keyframes. Then set the selected keyframes to "Linear Interpolation" by clicking the icon shown in the image below. If you’re now happy with the timing, you can manipulate the values and position of the keyframes to tweak things further.

Here my final slow motion result!


Don’t miss more CG tutorials and guides, published daily – subscribe to Cgtuts+ by RSS.

  • http://www.blackbluebrown.com geoff brown

    can’t wait to try this one. modelling, rigging, and animating in 1 C4D tut? brilliant!

  • Animal006

    Hi,

    Very nice tutorial, but I have a problem with the suspension and wheels.
    I modeled my tire, inserted a connector and did the “Reset PSR” and put them in a “null object”. Next I placed them where I wanted them to be on the car. I copied them so I had 4 wheels with suspension.
    Next I applied a dynamics tag on the tires and car as well on the floor.

    When I hit the play button, the car and wheels fall on the floor, but i see that the axis of my suspension is not aligned with the axis of my tire. So when a add a motor, my wheels don’t rotate around the axis of my suspension and as a result a very “wobely” car.

    The axis do align when the car is suspended in the air before I hit the play button.

    How can I fix this?

    I use C4D R13

    Greets,
    Animal006

  • Sam

    Great help, what do you mean when you mention the part with the motors,
    Apply the same to the other motor, this time use another of “course”.

    thanks
    sam

  • Glenn O Neill

    Great tutorial, I wish CGTuts had more regular tutorials. Anyway thanks, here is my attempt
    http://www.youtube.com/watch?v=w8BkZSsjoy8&feature=channel_video_title

  • Audrey

    YES! This is the best tut I’ve seen on here in a long time. Thank you very much to Dogacan Bilgili for sharing!

  • pepitoto

    Just inspired or it’s really like a tutorial of Chris Schmidt on greyscalegorilla?

  • illd

    good tutorial – thanks!

  • tur

    Hi. Thanks for tutorial. About the wheels… When I hit play, they are fall through the ground, how can I fix this?

  • Olaitan

    Thanks for the tut. for some reason when I add the steering the car just slides. And I remembered to reset the follow rotation to 0. Using R13. Everything else works except for the steering for me. Thanks

    • fletchyann

      I have a similar problem. please help me if you have been able to fix yours. thank you

  • Guilherme Moreira

    Dude, Excellent Tutoring, but when I go to turn the wheels, they slide down! help me?

  • http://www.3dvisuals.net Steve

    Fantastic tutorial! – Here is what I ended up with.

    http://vimeo.com/36972994

  • Mike

    Definitely learned a few cool things through this GREAT TUTORIAL.

    This is my try.

    http://vimeo.com/42459199

  • karlos

    hi could you please send me a link to download the cars we do not want to veer please send it to my email kajabrava@gmail.com

  • hadipour
  • fletchyann

    Thanks for the tut.i reset the follow rotation and did the keyframing for turning the wheels but my car just slides by. please help me. B’cos i love this tut

  • Saunter

    Do the front wheels look like they go through the car body? They must do or how can they turn if there flat to the side like the back ones and no cutout wheel arches?

  • http://twitter.com/LloydAbbex La bbexa Nostra

    Pls people how can I complete the car, help me pls am just a beginner . Thanks

  • http://twitter.com/LloydAbbex La bbexa Nostra

    Someone please help me am just a beginner and I didn’t get how he complete the car #just the car … pls help me on how I can make the car . This lil car is so cool http://vimeo.com/42459199

  • http://www.facebook.com/profile.php?id=100001255269915 Rahul Gupta

    my car keeps falling to the ground and wheels go high in the air and start turning. Plz help?

  • martin

    wow awesome I’ve been looking for this much on youtube and everywhere … I ask you please if possible to do a video tutorial so you do the same for the Learning Center easier and you send the link to my email when you are ready if possible please

  • martin

    ahhhhhhhhh if anyone can help please tell me where this dinamic body in c4d r14 can not find it