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 Alanimator · Dec 03, 2013 at 09:38 PM · collisionrigidbodycollidermesh

How to allow collisions on a Child of a Non Kinematic RigidBody ?

I have a parent and child object

Object1 : is the parent Object2 : is the child

Object1 has a mesh collider and a non kinematic Rigibdody attached to it Object2 has only a mesh collider.

Object1 has a smaller mesh collider than that of Object2

projectiles will collide with Object2's mesh collider whenever i remove Object1's RigidBody.

But I need the rigidbody and I cannot afford to change the current parent child relationship nor make any major modifications.

How do I get Object2 to detect collisions while having the RigidBody attached to Object1 ??

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

1 Reply

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

Answer by Spinnernicholas · Dec 03, 2013 at 10:11 PM

Create a second child object under Object1 and move the rigidbody there.

It will take a little bit of buttoning up in code, but it should work well.

Comment
Add comment · Show 4 · 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 Alanimator · Dec 03, 2013 at 10:22 PM 0
Share

I'm using the Dont Go Through Things Code which requires that a mesh collider and RigidBody be on the parent object. I'm unable to move the Rigidbody without compromising the functionality

avatar image Spinnernicholas · Dec 03, 2013 at 11:14 PM 0
Share

What is the point to using that code with a non kinematic rigidbody?

avatar image Spinnernicholas · Dec 04, 2013 at 04:53 PM 0
Share

..........

avatar image Alanimator · Dec 07, 2013 at 10:38 PM 0
Share

its a requirement fo the code to work . I got it working . I had to tame my whole scene to 3ds max and break up each cube and set it back to unity add colliders to each part .

I added the rigidbody and set its mass to 1000 to the child too so it all works now 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

17 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

Related Questions

Unreliable collision detection between rigidbody and mesh collider 1 Answer

Trouble with OnCollisionEnter and Exit 1 Answer

Giant colliders restricted to a set size? 0 Answers

Avoid Player bouncing when colliding with objects 3D 1 Answer

Why is the Rigidbody ignoring Colliders? 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