Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
0
Question by CodingNoob · Jan 27, 2015 at 11:28 AM · unitsmeasure

Using millimeters to move object

Hey there,

I know that Unity uses units and not exact meters, centimeters or millimeters for measruement, or better said: the units might be what I want (as long as it doesn't get to physics), but for my prject I need to move different objects in an exact range of millimeters. So let's say my object has a size of 5m x 3m x 2m, I need to move another object exactly 5cm on the xAxis of the object. How can I manage this? Sounds ridiculous, but the issue is, that by importing the fbx, unity sets every value to 1 (so the size of the object is 1 x 1 x 1) or to the scale the object has in the 3d modeling tool (for example 10), so my measurements are lost... Maybe I'm just missing something? Would be thankful for every help! :)

Comment
Add comment · Show 1
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 CodingNoob · Jan 27, 2015 at 01:27 PM 0
Share

uuuuups...got confused, sorry! what i wanted to say is, that unity takes the object which is being imported and scales it, and the size in meters of the object is then no longer accessible...

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Andres-Fernandez · Jan 27, 2015 at 11:49 AM

Unity scales the object (actually scales the mesh when importing) differently depending on the format (for example .fbx has a 0.01 scale factor and .3ds has a 0.1 factor). Check the docs here.

What you need to figure out is your scale and then move the object according to that.

Comment
Add comment · Show 3 · 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 CodingNoob · Jan 27, 2015 at 01:32 PM 0
Share

Thank you!

I found the option and set the scale to 1, but the movement still didn't work out as intended. I don't know what didn't work as I wanted, but the object's position wasn't changed in Relation to the world, but to the parent or something. But: The scale was right, so that 1 unit equals the unit I want (mm), so I just created an empty object and set it as parent of the object I wanted to move, and now it works...somehow o.O

avatar image Andres-Fernandez · Jan 27, 2015 at 02:21 PM 0
Share

You usually set the scale factor to fit Unity units (which is considered 1 meter). You can easily check that by adding a cube to the scene and comparing it to your model. If your model is 1 meter tall it should be 1 cube tall, 2 meter tall should be 2 cubes tall, 3 meters tall equals 3 cubes tall and so on. If your model fits that, then you can move a milimeter by moving 0,001 units.

avatar image CodingNoob · Jan 27, 2015 at 02:38 PM 0
Share

I'll check that! Thank you very much for your help! :)

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.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

the measurement units in Unity2.61 2 Answers

How much is a meter in Unity? 3 Answers

Units of measurement in Unity 2 Answers

How to determine the number of pixels per unit? 1 Answer

Detect when audio thread is taking too long 1 Answer


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