Roads Sensor
BeamNG.tech sensor that detects road surface properties under the vehicle — surface type, friction coefficient, road width, and curvature. Useful for ADAS development and autonomous driving research.
BeamNG.tech sensor that detects road surface properties under the vehicle — surface type, friction coefficient, road width, and curvature. Useful for ADAS development and autonomous driving research.
State Fields
| Field | Type | Description |
|---|---|---|
type | string | Module type ('auxiliary'). |
Public API
| Function | Description |
|---|---|
getSensorData() | returns all buffered road readings. |
getLatest() | returns the most recent road geometry snapshot (distances to edges, centerline cubic coefficients, drivability, speed limits). |
incrementTimer(dtSim) | Advances the GFX polling timer. |
Hooks
| Hook | Description |
|---|---|
init(data) | Initializes the sensor and resets internal readings buffers. |
update(dtSim) | primary physics loop. Matches vehicle position to the navigraph, fits splines to the local road segment, and computes lane distances, heading angles, and road curvature. |
See Also
- GPS Sensor — Position sensing
- Ideal RADAR Sensor — Object detection
Data Recorders
Built-in data recording system that captures vehicle state at configurable intervals. Records timestamped telemetry (position, speed, inputs, powertrain state) to files for post-processing analysis.
Tech Screens Controller
Manages auxiliary display screens in the vehicle (infotainment, instrument clusters) for BeamNG.tech integrations. Allows external applications to render content on in-vehicle displays.