Unreal units > metric measures

Discussions about Coding and Scripting
Post Reply
User avatar
TheDane
Masterful
Posts: 660
Joined: Tue Feb 12, 2008 2:47 pm
Personal rank: Happy fool :-)

Unreal units > metric measures

Post by TheDane »

I'm sorry if this has been asked before!

I'm currently doing a mod that traces the distance from player to various objects in the level. These traces results in a number in unreal units. Now I want to display the distance using metric system on the HUD.

I'm using the Introdude decoration actor for sizing as I build the map for my mod, and I've placed a player model actor besides him and they seem close to same size. So ... how tall is this dude? my guess is 190 cm, don't ask me why, he just looks that way haha.

So from measuring his height in UU (aprox 80 UU), I get that 1 UU is equal to 2,375 cm ( 190/80 ).

Does anyone agree on this sizing or have used other measures? Is there a "standard" lost in an old achive I've missed somewhere?
Retired.
User avatar
Hellkeeper
Inhuman
Posts: 903
Joined: Tue Feb 25, 2014 12:32 pm
Personal rank: Soulless Automaton
Location: France
Contact:

Re: Unreal units > metric measures

Post by Hellkeeper »

No, you're fine, the only thing that can be discussed is the height you chose for the player. 1m90 is tall, but that's probably normal for the Danes. :P
All the attempts I've seen at doing this conversion take the player model to be 1m80, which would get 1 UU = 2.25 cm, but the different is minimal except if you're trying to get a precise distance from an actor very far away.

Things are easier in UT200X because the player is 96 units tall, so the same assumption (player is 1m80 tall) makes 16 UU equivalent to one foot and you can then have easier measurements by using american units.
Last edited by Hellkeeper on Wed Apr 10, 2019 12:08 pm, edited 1 time in total.
You must construct additional pylons.
User avatar
Barbie
Godlike
Posts: 2792
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Unreal units > metric measures

Post by Barbie »

Wiki says:

Code: Select all

    256 UU = 487.68 cm = 16 feet.
    1 meter = 52.5 UU
    1 foot = 16 UU
    1 cm = 0.525 UU
    1 UU = 0.75 inches
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
User avatar
Hellkeeper
Inhuman
Posts: 903
Joined: Tue Feb 25, 2014 12:32 pm
Personal rank: Soulless Automaton
Location: France
Contact:

Re: Unreal units > metric measures

Post by Hellkeeper »

Barbie wrote:Wiki says:

Code: Select all

    256 UU = 487.68 cm = 16 feet.
    1 meter = 52.5 UU
    1 foot = 16 UU
    1 cm = 0.525 UU
    1 UU = 0.75 inches
This is better applied to UT2004, where 256 UU = 16f is a good approximation. The conversion from UU to cm is x/16*30 (256/16*30 ≈ 480), and 80/16*30 = 150. This makes players a whooping 1m50 which is slightly smaller than my little sister.
You must construct additional pylons.
Post Reply