How would I allow a player to draw a road on a (height mapped) terrain?
I would like to allow the player to pick one point, and then another point and have my game create a road between the two pots.
Any advice?
Thanks,
~Eric
How would I allow a player to draw a road on a (height mapped) terrain?
I would like to allow the player to pick one point, and then another point and have my game create a road between the two pots.
Any advice?
Thanks,
~Eric
Several ways you can go about this… but it depends on how detailed you want to get. You could create a road prefab and write a script that will instantiate the prefab and apply it to the points clicked on the terrain (Vectors.) I believe there is a river tool and a road tool somewhere in the asset store. Look around for that. Then study the code and apply it to what you want to do. That’s probably where I’d start.