Roads on City games

I am seriously confused. I’ve spent days wracking my brain trying to figure out how games like simcity have buildings and roads up and down hills! I can’t seem to figure out a way of making a road rotate and follow the exact curvature of the surface it’s on. Any help would be appreciated. Thank you!

I use unity script and if you could give me an example that would be great! :slight_smile:
Thank you

Well, it depends a lot on what kind of effect you want.

Long story short, it’s best not to think of it as a rotation!

Earlier Simcity games lay a grid over the terrain, and each square of that grid gets its own texture. If it’s meant to be a road, then it gets the road texture. Doesn’t matter if it’s going uphill or downhill. There’s no separate road object (though those squares will be flagged as roadway).

Newer games allow for much more detailed roading. One way you could do it would be to paint the texture onto your terrain. A better way would be to plan the road path, and build a mesh for the road based on that path and then throw a texture on it. It’s actually not that hard to do.

If you want to try it yourself, Unity has good tutorial to get started with creating meshes at runtime: Unity - Manual: Example: creating a quad

If you don’t, there are assets that you can buy to do the job for you, like Road Architect: Unity Asset Store - The Best Assets for Game Making

You can do this. If you want to save your time then I will recommend you to get some 3D models of street, buildings, bridges or road parts( if you want to build custom roads) or even you can get some models of cities then you can place your models in unity and start with it. Use blender to convert 3d models into fbx format.
You can use following two websites to get free 3D good models.

If you want look for more then go to google sketchup and download then you can convert these into fbx. But you need either google sketchup or some converter.

If you want to develop your own custom roads then you can use some road parts models and tools like blender to make awesome street.