w3gjs icon indicating copy to clipboard operation
w3gjs copied to clipboard

Represent floats like the game does with three digit precision after the comma

Open PBug90 opened this issue 3 years ago • 0 comments

Floats seem to be single precision IEEE floats, but the actual value used in game appears to be rounded to the third digit after the comma, e.g. the point

( -3153.615966796875 | -4017.91357421875) is represented ingame as (-3153.616 | -4017.914).

This can be observed in the World Editor aswell.

Maybe it would make sense to update the parser to use this kind of precision aswell.

PBug90 avatar Apr 24 '22 02:04 PBug90