• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by EvilSquid · Aug 17, 2013 at 02:59 PM · worldunits

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?

Comment
sdgd
cowlinator

People who like this

2 Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image robertbu · Aug 17, 2013 at 03:04 PM 0
Share

http://answers.unity3d.com/questions/17670/what-does-unity-measure-distance-in.html

avatar image Fattie · Aug 17, 2013 at 03:23 PM 1
Share

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.

avatar image Eric5h5 · Aug 17, 2013 at 07:34 PM 1
Share

Mass is 100% NOT kilograms. You may think that's "simple", but it's just plain wrong, sorry. Mass 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.

avatar image Eric5h5 · Aug 17, 2013 at 07:49 PM 0
Share

Also, the terrain is not measured in meters, it's measured in units like everything else.

avatar image Fattie · Aug 17, 2013 at 07:49 PM 2
Share

Mass is KG, 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.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

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.

Comment
Fattie
Eric5h5
mineus64

People who like this

1 Show 17 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Sajidfarooq · Aug 17, 2013 at 03:15 PM 2
Share

Yes its in meters. And physics depends on mass too, just FYI.

avatar image Fattie · Aug 17, 2013 at 03:27 PM 3
Share

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 (Magnum'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 ..

Miyamoto'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.)

avatar image Sajidfarooq · Aug 17, 2013 at 03:30 PM 1
Share

Damn! I work on large-scale simulations and I haven't had to memorize those. Hats off!

avatar image sdgd · Aug 17, 2013 at 03:41 PM 1
Share

even if you take a measurement in feet instead of meters you'll still get same result. just you'll get bigger map.

because everything will scale UP.

avatar image Fattie · Aug 17, 2013 at 03:47 PM 3
Share

stick to meters. it's that simple. consider when you work in teams with others, etc etc.

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

GameObject Scale as World Coordinates (Units)? 1 Answer

Unity unit scale? 5 Answers

Converting world point to screen point 2 Answers

Objects local/world cordinate question 1 Answer

How to catch a Vector3-value by clicking at a world position in editor mode? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges