Unreal units > metric measures

Discussions about Coding and Scripting

Unreal units > metric measures

Postby TheDane » Wed Apr 10, 2019 11:15 am

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
TheDane
Masterful
 
Posts: 614
Joined: Tue Feb 12, 2008 2:47 pm
Personal rank: Anti EPIC Games fan

Re: Unreal units > metric measures

Postby Hellkeeper » Wed Apr 10, 2019 12:07 pm

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
Hellkeeper
Masterful
 
Posts: 695
Joined: Tue Feb 25, 2014 12:32 pm
Location: France
Personal rank: Soulless Automaton

Re: Unreal units > metric measures

Postby Barbie » Wed Apr 10, 2019 12:08 pm

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
Barbie
Godlike
 
Posts: 1654
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Unreal units > metric measures

Postby Hellkeeper » Wed Apr 10, 2019 12:18 pm

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.
User avatar
Hellkeeper
Masterful
 
Posts: 695
Joined: Tue Feb 25, 2014 12:32 pm
Location: France
Personal rank: Soulless Automaton


Return to Coding, Scripting

Who is online

Users browsing this forum: No registered users and 4 guests