Confirmation of Measurement Scale in BeamNG.tech

I am working on modifications to the motionSim.lua file. To ensure the accuracy of the data I am collecting, I need to confirm the scale of measurements used in the game.

Could you inform me if the increments in posX, posY and posZ in the game represent increments of the same magnitude in the real world (1:1 scale), or is there some conversion?

I appreciate any information or direction on where I can find this information, whether through official documentation or community resources.

Thank you!

Hello matheus;

there is no additional scaling (scale 1:1) for the signals in the motionSim protocols. Generally we try to use SI units whenever feasible, therefore the positions are in meter, velocity in m/s and angles in radians.

For further information how to implement custom signals, you can have a look at this page:

Thanks for responding. I asked because I found the following in the source code:

int posX; // 3 ints X, Y, Z (1m = 65536) // N/A
int posY; // N/A
int posZ; // N/A

What would be 1m = 65536? (On version 0.31.3.0)

Hello matheus,
for various reasons I would strongly recommend to update to the newest version of BeamNG.tech. With release 0.32 there was a bigger overhaul of how to setup a custom protocol for UDP communication which might be very helpful for your demands.
The code you shared is from a outsim.lua which is not a full working file but served as a template. This extension got deprecated with the protocol overhaul.

1 Like