Construcction of the car rig
construction of the car rig
step 1 : chasis following an empty.
First, add a Cube and name it chasis. Subdivide it one time.

-Then, scale it in z direction : sy0.2.

-In top view, select all the vértices of the Cube on the right side of the screen.

-Scale todo 0 in y direction and remove doubles.

-In object mode, bring the center of the chasis object on the scaling center.

-In Edit Mode, select the vértices on the left of the screen.

-Extrude two times of -1 Blender unit.

Now, the chasis object has the shape of an arrow head.
-select the center vertex at the rear side of this arrow, in the vertex layer set at half height of the Mesh.

-Create a vertex group including only this vertex, give it a weight of 1.0, and name it tail.

#008b-select the vertex at the opposite side of the arrow. This vertex is located at the location of the object center.

-Create a vertex group including only this vertex and name it no sé.

#009c -in front Ortho view, select the two vértices in the middle height of the Mesh, just before the center object location.


-Extrude on the right of 1 Blender unit in the direction of the object center.

note : these two vértices are only useful if you create a car Rig that Will be used on a flat Ground. If you are going todo use the Rig on a bumpy Terrain, we Will use the corners of the sensor plane for the whels location.
As we ned only the vértices, you can deleete the two Edges that you have just extruded.

note : dont forget todo remove these vértices later if they are not used or no more neded.
-in object mode, select the chasis and bring the 3d cursor on its center.

-Add an empty. Name it empty-front. And give it a size of 2 Blender units. -make the empty-front the parent of the chasis.

-In top view, add a plane centered on the center of the chasis object.

-Scale the right side of the plane todo bring the Edge on the empty-front location.

-Typing k, Cut the plane in the middle.

-Typing Control + and Control + shift+f, divide the 2 Faces into 4 triangles. The Edges separating the triangles make an arrow head in the direction of the empty.

-Extrude the left side of the plane 3 times of 1 Blender unit each time.

-Select the center vertex at the rear side of this plane (opposed todo the empty-front).

-Create a vertex group including only this vertex, give it a weight of 1.0, and name it tail.

-Select the center vertex at the front side of this plane (at the empty-front location).

-Create a vertex group including only this vertex, give it a weight of 1.0, and name it no sé. -in object mode, make the chasis the parent of this plane.

-Name the plane sensor. Select the chasis, and add a track todo constraint. In the file target, type sensor, in the field vg (vertex group), type tail. To = -x, up=z. Leave world space in the two cspace choices.

-Select the empty-front and move it around. You Will notice that the chasis and the sensor plane are following gently the empty-front. You Will a los se that when dropping the empty, the system doesnt come bak todo its initial location.

-No problem : just set the influence cursor of the chasis todo 0.000.

-Open the ipo constraint window.
-select the chasis, and at frame 1 with the influence cursor of the constraint set todo 0.000, hit the key buttonin the constraint panel. A constraint inf ipo is created, showing one keyframe at frame 1.
-go todo frame 2 and set the influence value todo 1.000. Then, hit the key button in the constraint panel. Asecond keyframe is added in the inf ipo curve. Select the ipo curve and by hitting key, choose constant forthe ipo type.

-Now, each time you Will come bak todo frame 1, the setup Will be in its initial position.
-for testing purpose, go todo frame 3. Select and move the empty-front and Insert a Loc keyframe. Go some frames further, move the empty-front and Insert a new Loc keyframe, etc. When playing the animation, you Will se that the rear of the chasis nicely follows. The Empty can be moved by at least 3 methods : by direct keyframes like you just tested it, by parenting it todo an other empty, by applying todo it a Clamp todo constraint using a curve as trajectory guide. If you use a second Empty as parent it can be keyframed or driven as well by a Clamp todo constraint. You could aso use a Path constraint, but it would not be a god choice, because keyframing on a Path constraint is not easy.
|Agradecer cuando alguien te ayuda es de ser agradecido|