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 AFGreco · Apr 22, 2011 at 04:16 AM · rotationchildren

Rotating Child Around World Space

Hello,

I have literally spent all day trying to get this to work. I have a parent cube, with four child object "tires". What I want is for the children to rotate as the cube moves forward, making it appear as a tire would. I know realistically a lot more should go into this to make it look real, but I want to learn the basics first.

Problem I am having is the rotation being done around the parent, which is resulting is my round tires turning very oblong and then rotating. I simply want my tire to rotate assuming it's pivot point was dead center, as if it had no parent.

This works perfect if I detach the object from it's parent, but I will be moving parent a lot and I would prefer to not have to write a script to mimic it being a child.

I would really appreciate any incite on this and it is really driving me insane.

Thanks in advance,

Anthony

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 burgunfaust · Apr 22, 2011 at 04:45 AM 0
Share

Post your script. It will help identify the problem.

1 Reply

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

Answer by hellcats · Apr 22, 2011 at 04:47 AM

Do you have a non-uniform scale factor of either your parent or tire objects (look at the "Scale" values of the transform). If they are not all the same number, then you will get weird distortions when you rotate something. Remember that the scale factor of the parent affects its children.

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 AFGreco · Apr 22, 2011 at 12:39 PM 0
Share

Since the body of the car is a cube that is longer width wise then height wise, yes it is. I did not notice yesterday my scale changed when adding to the parent. Now if I have my parent as 1,1,1 the scale ratio on the child stays the same and starts to rotate correctly. I guess the question at this point then is how do I take my body and make it 1x1x1 while still keeping my original aspects. I know the logic of what I'd have to do, just no clue how. Is there a way to take an object and convert it into it's own "$$anonymous$$aterial" thats now 1x1x1? I tried making a prefab but still uses same scale

avatar image AFGreco · Apr 22, 2011 at 12:40 PM 0
Share

it's own GameObject type I mean*

avatar image AFGreco · Apr 22, 2011 at 02:24 PM 0
Share

Actually... I solved my issue when I remembered there are empty options. I simply created an empty object, and made body and tires children of that. Since empty object is 1x1x1, it works perfect! If you can suggest a better way, I always like more experienced peoples advice, but thanks!

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

No one has followed this question yet.

Related Questions

Flip over an object (smooth transition) 3 Answers

Child-objects are not properly 'transformed' with parent 1 Answer

I have a gun model made up of multiple parts, attached to a rotating transform. Parts are transforming separately. (Images) 4 Answers

Object rotation as a children of the main camera 1 Answer

How To Get The Position And Rotation For ALL The Children Of An Object For An Animation At Once 0 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