Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Instantiating a road at different angle

Discussion in 'Scripting' started by Creationist, Jun 3, 2015.

  1. Creationist

    Creationist

    Joined:
    Jun 2, 2015
    Posts:
    3
    I'm having a huge problem here, I have no idea where to start on it, I'm trying to create something like a road, left side and right side are same angle, for example take a space ship which flies forward, I want the road to sometimes get curvy, sometimes turn the angle left or right, but how can i do it?

    I thought of something like a cube that goes up and changes it's angle and direction and little which makes it create the road differently... but I don't know where to start.

    http://prntscr.com/7cnv14

    Something like the image above. could anyone guide me and spread some light on this... been trying for 3 days without success
     
  2. magnetix

    magnetix

    Joined:
    Apr 4, 2010
    Posts:
    102
    If you want a procedurally generated road, then you want to create your own mesh and supply vertex, face, uv and material data. If you want a pre-built track, then I'd go to an external modelling tool such as Blender if you want a free option. Then just import the FBX you export from Blender. Or, maybe you could try this free Asset Store package to get you started, but it's only something I've messed around briefly with. Ultimately, you'll want something a lot more specific to your needs as per my first suggestions.