> For the complete documentation index, see [llms.txt](https://ss3d.gitbook.io/design/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ss3d.gitbook.io/design/environment/connectables.md).

# Connectables

The system for connectable tilemap objects.

***For technical documentation on this system use the link below.***

{% content-ref url="/spaces/95OhrYYgKj0eUTnfM9sL/pages/LFBQ17jV8YZEgzWxahgx" %}
[Adjacency Connections](https://ss3d.gitbook.io/systems/tilemaps/adding-new-items-and-objects/adjacency-connections)
{% endcontent-ref %}

Connectables are a sub-system of [Tilemaps](/design/environment/tilemaps.md) which use adjacency connection scripts to replace models depending on the status of neighboring tiles.

This works by using several differently shaped models and replacing them depending on any adjacent tiles with the same type of connectable (see the Tilemap document for more details).

Different types of connectables have different ways they allow or don’t allow connections.

<figure><img src="https://lh5.googleusercontent.com/c3FRK_ZKQYLnXBhkpp4tCj7k9Kn4HWWi-1WfbzkofsYekS330dtCG476bOM1e56bmQc5iXidDz1g9G3hlTdXXeHToUcItnjUuClXmRE1UvvZNOtizzaG6PsmLRzxtnCz9YYfAOpPYs1Ux62iVRt5tg" alt=""><figcaption><p>For example, wires can connect diagonally and have several unique shapes that are not possible with tables.</p></figcaption></figure>

As a result, we use several unique mathematical scripts known as “adjacency connectors” to handle the connection logistics.

Types of connectables are manually defined by an ID known as a “generic type” (ex. wall, table, wire, cable, etc.). When properly assigned, this ID makes sure different types of connectables properly connect to themselves but not other types of connectables.

In addition to generic types, some connectables may even have a “specific type” ID. The specific type is used to distinguish different variants of the same type of connectable. The best example is having multiple material-based table variants (wood & metal), the specific type could be used to prevent connections between different variant types while maintaining connections between the same variant types.

It should also be noted that objects will only connect if they are connected to the tilemap, removing them from the tilemap will disconnect any connections to it. Some objects can be bolted to / unbolted from the tilemap (tables, girders, sofa, etc.), while others also have ways to be attached / detached to the tilemap.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://ss3d.gitbook.io/design/environment/connectables.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
