• 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 seek3r · Feb 08, 2014 at 03:47 PM · transformobjectsparentingcompound

When parenting how do you keep the child object from taking on the transform charecteristics of the parent object?

Here is an an example. I am making a "wagon", which is just a cube, stretched out a bit for the body, with 4 cylinders "attached" as wheels. I want to parent the cylinders to the body, to have one complete object.

The problem is, when I try to do this, the wheels deform (I think they are taking on the transform characteristics of the body, at least that's how I understand how this works).

How do I stop this, and have the wheels retain their original shape? Or am I going about this the wrong way to build a complex shaped object (compounded out of other smaller shapes, that end up being one object)?

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by robertbu · Feb 08, 2014 at 05:01 PM

@Zpilintz's solutions are the right/best solutions. But here are a couple of hackish solutions.

1) Create an empty game object stand-in for any object that is not uniformly scaled. So the body of the car would be an empty game object. The visible body and the four wheels would be children of the empty game object.

2) You will find an editor script called RotateMesh in the following link. It is designed to fixup rotations, but it will also fixup non-uniform scaling. After placing the editor script in the Editor folder, select your non-uniform car body (no children), and select RotateMesh from menu. It will create a clone that has scale of (1,1,1). You can then delete the original and add the wheels to the clone.

http://answers.unity3d.com/questions/561786/how-to-export-obj-from-editor-with-rescaled-mesh.html

Comment
Add comment · 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
0

Answer by Zplintz · Feb 08, 2014 at 04:37 PM

Sounds like the wheels are taking on the scale properties of the parent. You could try creating the object in something like Max and Blender to the correct proportions you need before importing into Unity, so you do not need to scale the parent transform.

If (like me) you are creating prototype models and maps directly in Unity and want to avoid switching back and forwards between external packages (like Max and Blender) so you can maximise the time spent learning Unity you might try these:-

ProBuilder https://www.assetstore.unity3d.com/#/content/3558

Prototype https://www.assetstore.unity3d.com/#/content/11919

They are extremely good value for money and [ProBuilder + ProGrids] have saved me a huge amount of time and effort.

This way you avoid scaling primatives and (I think) any issues with the child transforms scaling.

I see nothing wrong with creating an object out of many different objects but as a rule I avoid scaling objects within Unity unless it is in all 3 axis uniformly.

Comment
Add comment · 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

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

19 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 avatar image avatar image

Related Questions

Moving child transform also moves parent rigidbody 0 Answers

Make an object mimic the rotation of another one according to their orientations 2 Answers

Child object getting transformed out side the scene on collision? 1 Answer

Child instantiated object to RayCastHit's parent. 1 Answer

Network.Instantiate parenting on other clients 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