Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Broseph1010 · Jul 19, 2018 at 09:08 PM · positionvector3child objectempty game object

Have an empty's position follow one of it's children's positions?

I am creating a physics-based ragdoll character made out of GameObjects, and I need the Empty that all of the ragdoll is in to follow the character. Is there any way this can be achieved?

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 Cynikal · Jul 19, 2018 at 09:14 PM

You can make the empty a child of the player, or you can just in the void Update() function, set it's transform.position = whatever.transform.position;

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 Broseph1010 · Jul 19, 2018 at 09:17 PM 0
Share

I don't think that would work, since I am using the empty as "The player" and the GameObjects are inside of it. Also having it move to a child's position would cause it to move the whole character.

avatar image
0

Answer by kalen_08 · Jul 19, 2018 at 09:30 PM

In the animator I think is where it is. Turn on where it say IK which is Inverse Kinematics which calculates that kind of thing as far as I know.... You have created the rag do using the Unity Template right?

Comment
Add comment · Show 5 · 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 Broseph1010 · Jul 19, 2018 at 09:34 PM 0
Share

It is not using an Armature at all, so no. I set it up with Configurable Joints and Hinge Joints. I plan to create a custom method of character control completely physics based. It is basically physics GameObjects inside an Empty.

avatar image kalen_08 Broseph1010 · Jul 19, 2018 at 09:43 PM 0
Share

If you move the parent object then the others will follow, I don't know how you'd coordinate all the movements though. believe that the normal character is physics based. If you import Standard Assets > Characters then select Ethan (the character) and on his model select Configure, then you have almost complete control over him. You can change the range of motion and speed(I think) as well as many other things. The Inverse $$anonymous$$inematics and Root $$anonymous$$otion uses the average weight of the object (based on gravity therefore physics) to calculate the positions of all the joints. Unless you are an advanced programmer looking for a challenge I would recommend using the normal character Ethan and from there edit him to how you like seen as Unity already has provided you with the tools to accomplish such a thing.

avatar image Broseph1010 kalen_08 · Jul 19, 2018 at 09:45 PM 0
Share

Thank you! I am really trying to develop a new character control system though. I have seen similar control methods, but I want my game to have a very unique style. I will look into other solutions though. Again, Thank you!

Show more comments

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

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

Related Questions

Instantiating objects at position 1 Answer

C# Transform modification. 1 Answer

How to stop transform movement at a certain point? 1 Answer

Any help with prevent camera from passing a specific coordinate? 1 Answer

How do i make an object move unpredictably? 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