🧩Connectables
The system for connectable tilemap objects.
For technical documentation on this system use the link below.
Connectables are a sub-system of Tilemaps 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.
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.
Last updated