Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 Croser · Sep 26, 2013 at 07:43 PM · javascriptcollisionrigidbodychilddestructible

Parent rigidbody using its childrens colliders. Should it work or am I stupid?

Hey there..

I'm working on a little something and I ran into this (to me) weird issue. As I have read on countless websites and even here on unity answers, when you make an empty gameObject, give it a rigidbody (without any colliders) and then, as it's children, you put let's say a bunch of cubes (with colliders) the parent rigidbody should use those colliders as it's own, thus having no problems colliding with the environment. The parent in my project doesn't seem to be using it's childrens colliders... It just goes right trough everything...

//Paragraph removed//

I find this more 'realisticly' looking than just swaping the whole object for the 'broken' prefab. As you can break it down piece by piece.

Unfortunately, this is only working for static objects such as the walls, and that is why I am trying to get the parent rigidbody to use it's childrens colliders. So I could make these objects breakable and moveable at the same time. Ofcourse, I could always ust use the 'object swapping', but as I've said, this looks better IMO.

Here's a video if anyone's interested. YouTube Link

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 Croser · Sep 26, 2013 at 11:32 PM

Turns out, I'm an idiot. If the child gameObject has a rigidbody the parent will NOT use its collider.. It took a while but I found a solution that exactly fits my purposes.

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 Psyco92 · Sep 25, 2016 at 01:01 AM 1
Share

care to mention what that solution is/was?

avatar image Labertasche3_0 Psyco92 · May 21, 2020 at 12:17 PM 0
Share

He just sad that ... attaching a Rigidbody to the childs

avatar image
0

Answer by Tanoshimi2000 · Sep 02, 2021 at 02:10 PM

When I try to have children with colliders and rigidbodies, the object falls apart. Any idea how to have a compound object with child colliders? Like a car with colliders for wheels, body, doors, bumper, etc?

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

18 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

Related Questions

Enemy death help 1 Answer

Changing body type right before the collision response 1 Answer

Car dynamics? 0 Answers

OnTriggerEnter Or OnCollisionEnter? 3 Answers

i cant get an object to become child of an other JS 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