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 recon472 · Dec 30, 2014 at 12:04 PM · physicsrigidbodytransformship

Rigidbody parent affecting rigid body of a child

Hi.

I have a spaceship that flies around using a rigid body. When a player (which also have a rigid body) walks into the ship, the ship becomes a parent of that player. This is because I need to be able to rotate and move the ship so that the player rotates with it seamlessly. The issue is following:

If I move the ship's transform, everything works as expected (the player is perfectly moving with the ship). However, when I move the ship by adding force to it's rigid body, the player starts lagging behind the ship and eventually falls out.

How can this be fixed? I am not sure what is even going on. I guess the parents rigid body translates some of it's velocity to it's children rigid bodies???

Any help appreciated Thanks Jacklin

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

Answer by recon472 · Jan 06, 2015 at 09:05 AM

So in the end I just made a static copy of the ship where the character controller / rigid body moves and in the actual moving ship theres only a camera and the animated character. and I am syncing localPosition between the two objects. That works perfectly...

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 Inok · Dec 30, 2014 at 01:33 PM

I can give you better solution for interaction hero and ship: You not need to make player child of ship, instead just make local relative to ship's floor gravity. When i say "local gravity" i mean add force to Hero Rigidbody. But disable global gravity in project settings when need to use local ship gravity. This concept not perfect and needs to be improved by you if you accept it.

Comment
Add comment · Show 2 · 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 recon472 · Dec 30, 2014 at 02:05 PM 0
Share

thanks. well I'll give it a try, although I see ton of new problems this could have. I'll get back to you

avatar image recon472 · Dec 30, 2014 at 02:30 PM 0
Share

well I can't get any better results. the player is still being pushed around no matter what

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

26 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

Related Questions

Is there a solution to when colliders bypass? 2 Answers

Strange Physics being applied to objects issue. 1 Answer

Disable transform inheritance for rigidbody 1 Answer

Parenting not working with massive force to rigidbody. Does having rigidbody on child screw things up? 1 Answer

stop vehicle from moving through walls 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