Page 1 of 1

Old question, but: Units to Meters?

Posted: Sun Oct 02, 2016 5:40 pm
by BackRaw
Hi,

what was the correct formula to convert ingame units to meters for CSS again?
Oh, and does the same formula apply to each engine (CSGO, TF2, etc.)?

Thank you. :)

Re: Old question, but: Units to Meters?

Posted: Sun Oct 02, 2016 6:07 pm
by satoon101
We haven't exposed it, but this is the same for each engine I have checked:
https://github.com/alliedmodders/hl2sdk ... face.h#L40

1 unit = 1 inch

Re: Old question, but: Units to Meters?

Posted: Sun Oct 02, 2016 7:32 pm
by iPlayer
A unit's relationship to real-world measurements is not set in stone or precise; it is defined only by the scale of a game's content.


But for HL2 here's the table: https://developer.valvesoftware.com/wik ... _reference

Re: Old question, but: Units to Meters?

Posted: Sun Oct 02, 2016 10:10 pm
by BackRaw
Thank you very much, helps a lot.