GPS Sensor
BeamNG.tech sensor providing high-frequency GPS positioning data. Converts the vehicle's simulation-space position to spherical coordinates (longitude/latitude) relative to a configurable map origin. Buffers readings for external co-simulation consumers.
BeamNG.tech sensor providing high-frequency GPS positioning data. Converts the vehicle's simulation-space position to spherical coordinates (longitude/latitude) relative to a configurable map origin. Buffers readings for external co-simulation consumers.
Public API
| Function | Description |
|---|---|
getSensorData() | returns all buffered GPS readings and current position. |
getLatest() | returns the most recent GPS coordinate snapshot. |
setIsVisualised(value) | Toggles debug visualization. |
incrementTimer(dtSim) | Advances the GFX polling window. |
Hooks
| Hook | Description |
|---|---|
init(data) | Sets up the sensor's attachment point and the map's origin coordinates. |
update(dtSim) | High-frequency physics loop. Computes the sensor's world-space position via barycentric coordinates and converts Euclidean (x, y) to spherical (lon, lat). |
module.reset() | Resets the controller to its initial state. |
See Also
- Advanced IMU — Inertial measurement unit
- Roads Sensor — Road surface detection
- Beam Navigator — In-vehicle navigation
Co-Simulation Coupling
Interface for connecting BeamNG.tech to external simulation environments. Enables synchronized data exchange with tools like MATLAB/Simulink, CarMaker, or custom co-simulation frameworks via shared memory or network protocols.
Ideal RADAR Sensor
BeamNG.tech idealized RADAR sensor that detects nearby vehicles and obstacles. Provides perfect (noise-free) range, bearing, and velocity data for ADAS algorithm development and testing.