- Home /
What are the real world measurements in Unity?
I know the Terrain is measured in metres, so a Terrain object with a width and length of 1000 is 1Km^2.
Does that mean everything in terms of distance is measured in metres? I believe that magnitude is measured in m/s, so that would lead me to believe it follows the pattern of metres and seconds for measurements.
Can someone just confirm this please?
Yes, it is meters and kilograms, end of story.
For sure - advanced users can make them "anything they want" (but then, you can do "anything at all you want" for that matter). The simple answer is m and kg.
$$anonymous$$ass is 100% NOT kilograms. You may think that's "simple", but it's just plain wrong, sorry. $$anonymous$$ass is just mass, with no relation to anything else. Distance measurements are meters by default due to some default settings in Unity, but that's not the case with mass. In fact saying that mass is kilograms is not a very good idea, since you will likely suffer from floating point precision issues if you try to use "real" weight in kg for larger objects. The fact is that an object with a mass of 1 colliding with an object with a mass of .5 behaves the same as an object with a mass of 1000 colliding with an object with a mass of 500. So you're usually better off just using 1 as the default for your "main object" and scaling everything based on that.
Also, the terrain is not measured in meters, it's measured in units like everything else.
$$anonymous$$ass is $$anonymous$$G, it's that simple man.... heh! :)
Time is time (seconds, as in the real universe). Distance is meters. That means velocity is m/s.
And that means Force, Acceleration, and Torque indeed all also use normal S.I. units.
It would be .. crazy .. madness! .. to try to work on a project (with cars, whatever, any vehicles, any real-world-like elements) .. unless everyone was simply working in the same units (ie ... S.I. units) for torque, power, force, friction, acceleration, etc etc.
Why?!
(Imagine trying to do car suspension!!!! if - for what reason?? - everyone wasn't using ordinary units - hell! Discussions would be unbelievably confusing. Aircraft etc, all the same.)
Eric, every time we discuss this you say the same thing..!! "1 to 10 collision is same as 2 to 20 in physx" .... utterly true of course, but every time I gotta point out that the whole, err, gamut of units everyone on the project is using should be just normal units.
FOR SURE, in like candy crush you could use any old abstract units, but really EVEN THERE .. would you? (Why?) I was just doing a scrabble-like board where you push around blocks like that, and it was unbelievably easier (for me personally, and everyone) to just use totally real units. (ie, how much would this really weigh in real life, one could talk about that etc.)
Another critical point, you make is that (of course) you have to be concerned about the "decent range" of the "mass" value in physX, so sure, that's a specific issue. (I've never encountered this, but I'm sure it's the case - but it's arcane and not relevant to the point at hand.)
Here's one you'll hate man. I love using physics, physX that is, for UI. So my buttons, sliders, whatever, use springs, gravity etc. I find EVEN THOSE it's tremendously easier if you use real world units! Heh!
All this being said, it is utterly essential that everyone understands precisely your point ... of course "1 to 10 collision is same as 2 to 20 in physx". But then similarly you can just make your models any old size. But it all goes to hell unless one just uses normal units.
Answer by Sajidfarooq · Aug 17, 2013 at 03:01 PM
Yes. Everything (especially physics) is in meters.
Having said that, if you aren't using Physics, then the Units are arbitrary, and you could scale-up and down, or define them as your own units.
Yes its in meters. And physics depends on mass too, just FYI.
Large airplanes are typically 50 meters.
If you wanna be a game programmer, you should absolutely be able to state off the top of your head the exact length of, well, almost everything. A 747 (jumbo jet) is of course 76 meters. A 308 Ferrari ($$anonymous$$agnum's one) is of course about 420 cm. I encourage you to work on this. Collect three length facts each week during the next month, and memorise those twelve facts. You will be well ahead.
Every single human being in the video game industry must surely know this ..
$$anonymous$$iyamoto's hobby is: "He has also has stated that he has a hobby of guessing the measurements of objects, then checking to see if he was correct, and apparently carries a tape measure with him everywhere."
(It's even on wikipedia, for goodness sake.)
Damn! I work on large-scale simulations and I haven't had to memorize those. Hats off!
even if you take a measurement in feet ins$$anonymous$$d of meters you'll still get same result. just you'll get bigger map.
because everything will scale UP.
stick to meters. it's that simple. consider when you work in $$anonymous$$ms with others, etc etc.
Your answer
Follow this Question
Related Questions
GameObject Scale as World Coordinates (Units)? 1 Answer
Unity unit scale? 5 Answers
Get position of the centre of each grid tile 1 Answer
MMORPG Scripting Ideas 1 Answer
Defining a local spawn offset 1 Answer