Talos docs

junction

Since next

Where roads meet: the road surface between their mouths, with rounded corners, stop lines and the lanes through it (ctx.world.junction).

Plain text

Built at load as <id>-surface, a mesh and trimesh collider 5 mm under the roads, so a road that carries on through it is drawn over it.

Use it in a scene entity's components list as { "type": "junction", … }. The contract writes the fields flat and refuses unknown keys.

Fields

FieldTypeRequiredDefaultAllowed valuesDescription
armsJunctionArm[]yesThe roads that meet here: two arms or more in all (a through road counts twice).
cornerRadiusMnumberno6Radius of each corner where two arms meet, metres, 0 or more. Default 6.
stopLinesbooleannotrueA stop line across each arm's lane in. Default true.
keepLeftbooleannofalseTraffic keeps left (the lanes and stop lines swap sides). Default false.
materialPhysicsMaterialnoPhysics material of the junction's surface (its grip, its surface kind). Default: the engine's default.

Rules that can refuse it