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 fallsilent · Oct 20, 2011 at 05:36 PM · positionchildparent-childtranslationcapsulecollider

Positioning problem when using hierarchy

Hi, I was just facing a problem while trying to create a custom ragdoll for a model by creating colliders per hand.

I created a simple example for my question where the same problem occurs. I created two empty GameObjects and made the second a child of the first. My first Object has the position (6,3,6), while the other has the local position (4,1,0), so translated a bit. Now I tried added a Capsule Collider to the parent GameObject (the first one) using the Component->Physics->Capsule Collider function. I expected to get a collider which is centered on my GameObject, but the Collider is set to an position with seems to be related to the child-object I created. I created a picture so you may understand it better:

alt text

If it delete the child-GameObject, the Capsule is automatically moved into the correct center point. Its "center"-value is (0, 0, 0) during the hole process.

So can someone explain to me, why the capsule seems to get the negative translation of the child-object attached to this object?

Thanks in advance, Mark

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 FLASHDENMARK · Nov 04, 2011 at 09:13 AM 0
Share

This is an issue with Unity, I have this problem myself sometimes.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by The-Arc-Games · Nov 04, 2011 at 08:31 AM

This is a curious issue. In fact I just went and tested this since it made no sense, and the capsule collider is actually installed exactly at the parent's position, when the center is 0 0 0.

So we're looking at a very different issue here. There's scripts or something else going on there, manipulating the collider, isn't it?

Suggestion: create a new project. create a new scene. create the two empty gameobjects. translate the second empty, and parent it to the first gameobject. add the capsule to the first gameobject. no matter what you do, its center will be unrelated to the child.

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.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Move child to position and bring parent 1 Answer

How make an object child of other object without changing the child position? 0 Answers

Transform child object over time and then destroy it. 1 Answer

Children Objects move weird 1 Answer

why is transform.position giving me local location?(c#) 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