• 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
1
Question by markfm · Jan 05, 2013 at 04:54 PM · scaleparentinheritance

Do not inherit scale from parent object

Hi,

How do I retain the same scale of an object when it becomes parented to a another object which has an akward scale. My cube is stretching really weirdly.

Steps to reproduce:

Shoot a cube from player into a wall.

Using scripting set the rigid body of the box to be kinematic

Parent cube to wall for any animations.

Box becomes squished.

Thanks,

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
6
Best Answer

Answer by Piflik · Jan 05, 2013 at 05:03 PM

If you parent an object to a scaled object, the child will use the parent's distorted coordinate system and deform when it rotates. To get around that, parent the Wall to an Empty and use that same EMpty as parent for the projectile, when it hits the wall.

Comment
Add comment · Show 1 · 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 markfm · Jan 06, 2013 at 12:28 AM 0
Share

Perfectly explained, thanks. :)

avatar image
0

Answer by dingben · Jul 31, 2015 at 08:15 PM

Could someone translate/rephrase this to apply to our scenario, using wheelColliders!

Project runs fine in 4.xxxxxx but when moved to 5.xxxxxx it gives the wobbling wheels...

Same issue in earlier versions of Unity, was resolved by rebuild all wheeled objects from scratch, at 0,0,0 etc... Massive waste of time... but at least it stopped the wobbling.

That was done twice for one of vehicle in 5.xxxx, still wobbling wheels

Vehicle is and EXACT copy... just made a copy of the project, and loaded it in 5.x Import complained about obsolete code Corrected all the deprecated code to the new Unity level... such as SetActive, etc...

Code is error-free and everything works except the wobbling issue, and the sounds, 5.x does not like 32bit wav.

Is there something new between 4x and 5x wheelcolliders!?

We are near upgrading to Pro, once we get all conversions to run smoothly...this is putting a dent in the plan... Our schedule runs to May 2016... we cannot be fighting obscure issues that seem to creep up on subsequent versions... and hardly any posts that offer clear solutions. Boss is adamant about all issues being resolved, before we finally move to Pro. Your help will come as ... a party!

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

11 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

Related Questions

Object scale/rotation changes when parented to flipped object 0 Answers

How to instantiate an object inside parent using parent's scale 1 Answer

Inheriting Parent Rotation and position 2 Answers

Rotating an object within its parent's scale 0 Answers

Moving Platforms & Scale (Parent/Child) 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