Bending a railway line I'm entirely new to Blender and am learning as I go, so I need a bit of step-by-step guidance please.

I'm working on some voxel based graphics, creating them in MagicaVoxel, exporting as .obj files and then importing into Blender. Most of the graphics are easy enough, however I have a railway line which looks like this:



In this case I want to 'bend' the railway line to become a curve, I need to make a number of curved sections in this way. I want to use these as 'tiles' within a game design environment (Unity) and so the rail needs to stay flat to the 'ground' of course and I want the straight and the curves to fit together, like pieces from a model railway would.

I've looked at some online videos and so on and ended up playing with the Simple Deform - Bend modifier, but I can't get to grips with it at all, the results I'm getting are nothing like my expectation!

Can anyone please provide me with some advice to help me understand how to approach this? Any guidance would be gratefully received. Thanks.
First apply an array modifier to the train tracks. With a distance set to one, this will make the rail segments touch, and iterate. Then, add a bezier curve. Select it, press tab to switch into edit mode, and then manipulate it to get a good shape. Apply a curve modifier to the rail, and set the object to be the bezier curve you created. The rail will curve to match your bezier curve. An invaluable resource in blender is the modifier encyclopedia on Andrew Price's website. Great tool for reference. Hope this helps!