Posted November 07, 2022 by North:Code
#Curved roads #Road system
Hi! im here, with some good news to share with all of you guys :)
This was the first week making Metropolitana, and a lot of things were maded in just a couple days, lets take a look.
In this gif, you can see how the curved roads are maded, first, placing one point, then the other, and lastly a third one, which will be the "pivot point", the point who will be used to asign how curved the road will be, from where the curve will start, etc...
This will generate points to the left and right of the road. For now these points just spawn cubes to get a visual reference of how good the points are generating, and if there is any error. This points are saved as vertices, who later will be used to make triangles and then get a specific mesh for the specific road.
Thanks to this video the road curve was calculated, so if there is a programmer who wants to know how it was maded, just take a look at the video.
Well, with al this said, thats what we were doing this week during the development. For a 1 person team i think its a great advancement and im happy with the way i made the code, triying to optimize everything i could, using names and writing the code in a way that any person who reads the code can understand, etc...
Take a look to some renders i made just for fun and to let you guys have a view of what i want for this game.
Have a nice day, see you soon ;)