<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://c4engine.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Connectors</id>
	<title>Connectors - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://c4engine.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Connectors"/>
	<link rel="alternate" type="text/html" href="https://c4engine.com/wiki/index.php?title=Connectors&amp;action=history"/>
	<updated>2026-04-13T05:27:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://c4engine.com/wiki/index.php?title=Connectors&amp;diff=424&amp;oldid=prev</id>
		<title>Eric Lengyel: Created page with &quot;'''Figure 1.''' Connectors can be added or removed from a node under the '''Connectors''' tab in the '''Node Info''' window. Every node in a world can have one or more ''connectors'' attached to it. A connector forms a link between the node that owns it and some other node in the world. Connectors are used for a variety of different purposes, such as connecting a portal to the zone that it leads to or connecting a node with a scr...&quot;</title>
		<link rel="alternate" type="text/html" href="https://c4engine.com/wiki/index.php?title=Connectors&amp;diff=424&amp;oldid=prev"/>
		<updated>2023-07-15T11:51:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/wiki/index.php?title=File:Pane_connectors.png&quot; title=&quot;File:Pane connectors.png&quot;&gt;right|frame|&amp;#039;&amp;#039;&amp;#039;Figure 1.&amp;#039;&amp;#039;&amp;#039; Connectors can be added or removed from a node under the &amp;#039;&amp;#039;&amp;#039;Connectors&amp;#039;&amp;#039;&amp;#039; tab in the &amp;#039;&amp;#039;&amp;#039;Node Info&amp;#039;&amp;#039;&amp;#039; window.&lt;/a&gt; Every node in a world can have one or more &amp;#039;&amp;#039;connectors&amp;#039;&amp;#039; attached to it. A connector forms a link between the node that owns it and some other node in the world. Connectors are used for a variety of different purposes, such as connecting a portal to the zone that it leads to or connecting a node with a scr...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Image:Pane_connectors.png|right|frame|'''Figure 1.''' Connectors can be added or removed from a node under the '''Connectors''' tab in the '''Node Info''' window.]]&lt;br /&gt;
Every node in a world can have one or more ''connectors'' attached to it. A connector forms a link between the node that owns it and some other node in the world. Connectors are used for a variety of different purposes, such as connecting a portal to the zone that it leads to or connecting a node with a script controller to other nodes that the script operates on.&lt;br /&gt;
&lt;br /&gt;
== Creating Connectors ==&lt;br /&gt;
&lt;br /&gt;
Connectors are added to (or removed from) a node under the '''Connectors''' tab in the '''Node Info''' window (shown in Figure 1). Each connector has a name of up to 15 bytes in length that is used to identify it. This identifier is displayed in the [[World Editor]] and the [[Script Editor]] to distinguish among different connectors attached to a node. To add a new connector to a node, simply click the '''New''' button and type in an identifier for the new entry that appears in the list of connectors.&lt;br /&gt;
&lt;br /&gt;
== Built-in Connectors ==&lt;br /&gt;
&lt;br /&gt;
Some node types have built-in connectors that can activated under the '''Connectors''' tab of the '''Node Info''' window. As shown in Figure 1, a list of built-in connectors is displayed on the left side of the window (empty in this case). Selecting an available built-in connector and clicking on the '''Assign''' button causes the connector to appear in the assigned list. Connectors in the assigned list will show up in the editor as connector boxes that can be linked to other nodes. The names of built-in connectors always begin with a percent character (%).&lt;br /&gt;
&lt;br /&gt;
The following table describes the built-in connectors for each type of node that defines them.&lt;br /&gt;
&lt;br /&gt;
{| {{Table}}&lt;br /&gt;
{{Tablehead3|Node Type|Connector|Usage}}&lt;br /&gt;
|-&lt;br /&gt;
{{Tablerow3|Zone|&amp;lt;code&amp;gt;%Fog&amp;lt;/code&amp;gt;|Connected to a [[Fog Spaces | fog space]] to indicate that a particular fog space should be used in the zone.}}&lt;br /&gt;
|-&lt;br /&gt;
{{Tablerow3|Zone|&amp;lt;code&amp;gt;%Acoustics&amp;lt;/code&amp;gt;|Connected to an acoustics space to define the acoustical properties of the zone.}}&lt;br /&gt;
|-&lt;br /&gt;
{{Tablerow3|Zone|&amp;lt;code&amp;gt;%Illuminance&amp;lt;/code&amp;gt;|Connected to an illuminance space to indicate that a particular illuminance space should be applied to geometries in the zone.}}&lt;br /&gt;
|-&lt;br /&gt;
{{Tablerow3|Portal|&amp;lt;code&amp;gt;%Zone&amp;lt;/code&amp;gt;|Connected to a zone to specify the destination of the portal. This connector is assigned by default when a new portal is created.}}&lt;br /&gt;
|-&lt;br /&gt;
{{Tablerow3|Light|&amp;lt;code&amp;gt;%Shadow&amp;lt;/code&amp;gt;|Connected to a [[Shadow Spaces | shadow space]] to specify the maximum bounds of shadows cast by the light.}}&lt;br /&gt;
|-&lt;br /&gt;
{{Tablerow3|Particle System|&amp;lt;code&amp;gt;%Emitter&amp;lt;/code&amp;gt;|Connected to an emitter for use by the particle system.}}&lt;br /&gt;
|-&lt;br /&gt;
{{Tablerow3|Physics Node|&amp;lt;code&amp;gt;%Physics&amp;lt;/code&amp;gt;|Connected to a physics space defining the boundary of the physics simulation.}}&lt;br /&gt;
|-&lt;br /&gt;
{{Tablerow3|Joint|&amp;lt;code&amp;gt;%Body1&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;%Body2&amp;lt;/code&amp;gt;|Connected to nodes that are constrained through the physics joint.}}&lt;br /&gt;
|-&lt;br /&gt;
{{Tablerow3|Cloth Geometry|&amp;lt;code&amp;gt;%Wind&amp;lt;/code&amp;gt;|Connected to a field with a wind force assigned to it to indicate that the wind should affect the cloth simulation.}}&lt;br /&gt;
|-&lt;br /&gt;
{{Tablerow3|Geometry|&amp;lt;code&amp;gt;%Paint&amp;lt;/code&amp;gt;|Connected to a [[Paint Spaces | paint space]] to indicate that the geometry's material should use a particular paint texture. This connector is automatically created when a geometry is associated with a paint space using the command in the [[Paint Page]], so it wouldn't normally need to be added manually.}}&lt;br /&gt;
|-&lt;br /&gt;
{{Tablerow3|Path Primitive, Tube Effect|&amp;lt;code&amp;gt;%Path&amp;lt;/code&amp;gt;|Connected to the path that defines the shape of the geometry or effect.}}&lt;br /&gt;
|-&lt;br /&gt;
{{Tablerow3|Instance|&amp;lt;code&amp;gt;%Shadow&amp;lt;/code&amp;gt;|Connected to a [[Shadow Spaces | shadow space]] so that a light inside an instanced world can use a shadow space in the instancing world. The light must have the &amp;quot;Use shadow space in instancing world&amp;quot; box checked.}}&lt;br /&gt;
|-&lt;br /&gt;
{{Tablerow3|Instance|&amp;lt;code&amp;gt;%Paint&amp;lt;/code&amp;gt;|Connected to a [[Paint Spaces | paint space]] so that a geometry inside an instanced world can use a paint space in the instancing world. The geometry must have the &amp;quot;Use paint space in instancing world&amp;quot; box checked.}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Image:Connectors.png|right|frame|'''Figure 2.''' When the '''Connect Tool''' is selected in the [[World Editor]], the connectors belonging to the selected node are displayed in a list beneath the node in all of the orthographic viewports. This screenshot shows a list of connectors belonging to a trigger node.]]&lt;br /&gt;
== Connecting to Other Nodes ==&lt;br /&gt;
&lt;br /&gt;
Each connector can be either unconnected or connected to one node. To specify the target of a connector in the [[World Editor]], click on the '''Connect Tool''' (or press 5) and then select a node for which you want to set an outgoing connection (but don't select the target yet). The available connectors will appear in a list beneath the selected node, as shown in Figure 2. Click in a box to select a connector, and it will be highlighted to indicate that it's selected. Then select the target node and choose '''Connect Node''' from the '''Node''' menu (or just type Ctrl-L). You will see a line with arrowheads pointing from the connector to its target node. Connectors from multiple nodes (one connector each) can be selected by using the Shift key. This can be useful if, for instance, you want to connect multiple zones to the same [[Fog Spaces | fog space]].&lt;br /&gt;
&lt;br /&gt;
A connector can be broken by selecting it and choosing '''Unconnect Node''' from the '''Node''' menu (or typing Ctrl-U).&lt;br /&gt;
&amp;lt;br clear=both&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [http://c4engine.com/docs/WorldMgr/Connector.html &amp;lt;code&amp;gt;Connector&amp;lt;/code&amp;gt;] class&lt;br /&gt;
* [http://c4engine.com/docs/WorldMgr/Hub.html &amp;lt;code&amp;gt;Hub&amp;lt;/code&amp;gt;] class&lt;br /&gt;
&lt;br /&gt;
[[Category:Editor]]&lt;/div&gt;</summary>
		<author><name>Eric Lengyel</name></author>
	</entry>
</feed>