Wishlist our upcoming game on Steam!


The array modifier used with a curve object is a very powerful trick to repeat an object. Using this method you can easily make objects like train tracks, pipes, rollercoasters, or whatever you can think of. With this quick tutorial, you will learn everything you need to get started.

Pikkukuva

Making an Object Follow a Curve

Array Modifier

Let’s say you are creating a train track and you currently have one piece of it ready. To create copies of the original piece, open the Modifier Properties tab and add the Array modifier to the object.

Repeating the Object Multiple Times

In this case, the object is facing the positive direction of the Y-axis so modify the Relative Offset setting’s X value to 0 and Y value to 1.

Array Modifier Direction

Increase the Count value to create copies of the piece.

Array Modifier Count

Curve Modifier

Press SHIFT + A and add a Path curve.

Blender Path Curve

Rotate it 90 degrees on the Z-axis. Go to the top view with NUMPAD7. Move the curve to the middle of the train track and scale it to be around the same length.

Now go to Edit mode and move the vertices of the curve to bend it.

Bending the Curve by Modifying its Vertices

Go back to Object mode and select the train track. Add the Curve modifier to it.

Adding the Curve Modifier to the Object

Set its Curve Object setting’s value to be the curve object.

Setting the Curve Object to the Modifier

Select the curve again and reset its location with CTRL + A, Location so that the track starts at the same point as the curve.

Resetting the Location of the Curve Object

Now you can modify the curve and the track will follow it.

Object Following the Curve

If you want to apply the modifiers, apply the Array modifier first then the Curve modifier. You can also remove the curve object if you wish.