> For the complete documentation index, see [llms.txt](https://quasistellar-game-development.gitbook.io/town-generator/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://quasistellar-game-development.gitbook.io/town-generator/tutorials/roads.md).

# Roads

### Video Tutorial

{% embed url="<https://www.youtube.com/watch?v=joCIRb3AGJw>" %}

### Tutorial

1. To add a Road, select an existing Sector or Town Generator (if you have no sectors), click on the Functions tab and then on Add Road under the Create heading:

   <figure><img src="/files/5gSyd6Wn454jQSByp7D0" alt=""><figcaption></figcaption></figure>
2. To edit the new Road, ensure that it is selected and switch to the Spline Context:

   <figure><img src="/files/PyaAeb26UQEZ2nPHMaWp" alt=""><figcaption></figcaption></figure>
3. Then click on Create Spline:

   <figure><img src="/files/RlcLex8drCMxlzAmlGGE" alt=""><figcaption></figcaption></figure>
4. Next, click in the scene to add points to the Road's Spline, where ever you would like the road:

   <figure><img src="/files/6LjJsx8mXXkWy420RViS" alt=""><figcaption></figcaption></figure>
5. Click the Spline tool again to stop adding points:

   <figure><img src="/files/ewuGRJn8zy0VDCnpljAs" alt=""><figcaption></figcaption></figure>
6. While still in the Spline Context, you can select the individual spline points and move them around. The points will automatically be aligned to the terrain.

   <figure><img src="/files/PbuiNEVSDf1Jjtm0LKbR" alt=""><figcaption></figcaption></figure>
7. In order to change the Road's Material, select the Road and go the it's Mesh Renderer component and change it's Material.&#x20;

   <figure><img src="/files/nGUJHKqRegZEqifaYdyw" alt=""><figcaption></figcaption></figure>
8. The Material texture scale can be changed under the Road component's General tab:

   <figure><img src="/files/r43WzNosVgYI6Icek3pC" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://quasistellar-game-development.gitbook.io/town-generator/tutorials/roads.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
