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.
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.
Public API
| Function | Description |
|---|---|
stop() | Gracefully terminates the network connection and closes all sockets. |
Hooks
| Hook | Description |
|---|---|
init(dataEncoded) | Sets up the network sockets and calculates synchronization timing for low-latency coupling. |
update(dt) | primary synchronization loop. Manages the exchange of vehicle state and external control signals within the required timing window. |
updateWheelsIntermediate(dt) | Applies received external torques directly to the vehicle's wheels before the physics solver step. |
See Also
- Vehicle Systems Coupling — External systems bridge
- MQTT Output — MQTT telemetry streaming
Advanced IMU Sensor
BeamNG.tech inertial measurement unit providing high-frequency acceleration, angular velocity, and orientation data. Simulates a 6-DOF IMU with configurable noise, bias, and update rates for realistic sensor modeling.
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.