Traffic light sensor
This element is a sensor layout used to detect traffic lights and access their states (red, green...) with relative position on the Scene2D. In Edit mode, the detection field is represented by dotted lines. Unlike the polysensor, this sensor is not generic and is meant for traffic light detection only. However, when detecting traffic lights, you will also be able to access any of the following parameter : traffic light color, distance on the X and Y axis of the car to the traffic light (see detected traffic light parameters).
| Is an equipment | ✔️ |
| Can have equipment | ❌ |
This element must be used with 2D scene context.
Icon
2D Representations
![]() | ![]() |
| Traffic light sensor in Edit Mode | Traffic light sensor in Run Mode |
3D Representation
No reprensation available on 3D.
External parameters
You can edit the units
Show/Hide all parameters
| parameter | editable via "Parameter" tab | updatable via a controller | description | default unit | type |
|---|---|---|---|---|---|
| X-axis relative position | ✔️ | ❌ | Relative position of the element, from its attached element, on the X-axis. | meter | Decimal number |
| Y-axis relative position | ✔️ | ❌ | Relative position of the element, from its attached element, on the Y-axis. | meter | Decimal number |
| Z-axis relative angle | ✔️ | ✔️ | Relative angle of the element, from its attached element. | degree | Decimal number |
| field initial angle | ✔️ | ✔️ | Initial angle of the illuminated field on the Z-axis. | degree | Decimal number |
| field final angle | ✔️ | ✔️ | Final angle of the illuminated field on the Z-axis. | degree | Decimal number |
| field radius | ✔️ |

