Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. We are looking for your feedback about Templates! Tell us about your experiences by taking our survey.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Create roads for my game

Discussion in 'Navigation' started by Moxid, Mar 21, 2018.

  1. Moxid

    Moxid

    Joined:
    Jan 24, 2016
    Posts:
    47
    Dear community,
    i have been searching for a soloution for the last 5 days but i really dont know how and where to start.
    I want to implement a system so the user can draw a line (in runtime) and then road tiles are created at the line, just like the classic city simulator games. Is the line renderer component a good place to start with?
    The roads should handle traffic system like cars moving on it and so on. Another important thing is, i need to be able to save and load the road again after restart. How would you implement this.I really need some serious advices. Thanks.
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    6,459
  3. Moxid

    Moxid

    Joined:
    Jan 24, 2016
    Posts:
    47
    thank you so much. i have already taken a look at these projects. i dont have a grid because i think the grid/snapping is not the problem. so generating procedural mesh is what i need.
     
  4. Symons

    Symons

    Joined:
    Dec 1, 2015
    Posts:
    3
    This will help alot, although if you are interested I am developing a generic code platform within unity for making city builders, tycoons and strategy games. It is not yet complete but if you are interested you could try out the early version it already has object placement, procedural spline generation (not the mesh part yet though) and other stuff like camera controls, alerts, minimap, music player, early citizen generation ect
     
  5. Moxid

    Moxid

    Joined:
    Jan 24, 2016
    Posts:
    47
    Dear Symons,
    i am using the line renderer to draw my roads, it works awesome. I changed the view to local and rotated by 90 degrees, all good. My only goal now is to implement a method how to handle the intersections (the overlapping of 2 roads) so i can create a crossroad for exampl, by instantiating a prefab at that point of overlapping. I also would really like to see your project. Greetings.
     
  6. Moxid

    Moxid

    Joined:
    Jan 24, 2016
    Posts:
    47
    I also forgot to mention, yes i have seen this tutorial.
     
  7. eelbaz

    eelbaz

    Joined:
    Feb 21, 2015
    Posts:
    19
    Hi Symons

    Is this an open source project we could contribute to as a community or is it only available under special circumstances?

    Sounds like it would be an awesome community driven project but obviously you have to make your money somehow so I wouldn’t be overly shocked if you planned to sell the asset instead.
     
  8. Moxid

    Moxid

    Joined:
    Jan 24, 2016
    Posts:
    47
    eelbaz it is a official tutorial.
     
  9. Symons

    Symons

    Joined:
    Dec 1, 2015
    Posts:
    3
    Well as murado says that tutorial is a official tutorial by Joachim Holmer but my project will not be open source but it may be free or cheap, I am not sure yet. I am making a big localisation database for it that will probably by open source so people can translate more of their games. Glad to hear your project is going good murado, I have no idea how I'm going to do interactionin and things yet :)
     
unityunity