• 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 Justei · May 02, 2013 at 05:36 PM · collisionrigidbodycharacterragdoll

Collision between rigid body zombie characters.

Hello, I want to remove the collision between a couple of characters I have (zombies).

I instantiate them on the fly, and would like to make it so that they won't collide with each other.

I have been trying to get it to work with collision layers, this is my setup: alt text

The layer on all my zombies (and all child objects) is ZombiesCollisionLayer.

The zombie is a ragdoll, which is why I think this is kind of hard, since the rigid bodies will collide with eachother I think?

Does anyone have any ideas on how to make this work?

Comment
Add comment · Show 9
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 ExTheSea · May 02, 2013 at 05:38 PM 1
Share

Well the rigidbodies should have some type of collider which should have a (physics-) Layer attached to it. If i look at the screenshot you posted i can't see your ZombiesCollisionLayer. Are you sure you added the layer correctly?

avatar image Justei · May 02, 2013 at 06:14 PM 0
Share

Well, in the screenshot it shortens it to iesCollisionLayer because it's too long :).

If I disable the colliders attached to the limbs, when the character dies and I set the rigidbodies to is$$anonymous$$inematic = false (to achieve the ragdoll). They will fall halfway throught the ground :/.

avatar image ExTheSea · May 02, 2013 at 06:26 PM 0
Share

The falling through the ground thing is obvious because there is no collider there to collide with the ground. The rigidbody just means that it reacts to physics like gravity but collision is controlled by colliders. Could you check the entire Object structure of your zombie to see if every gameobject with a collider attached to it has the layer zombieCollisionLayer selected.

avatar image Justei · May 02, 2013 at 06:33 PM 0
Share

They all have that layer selected, and they still collider with eachother :/... It's quite strange.

avatar image ExTheSea · May 02, 2013 at 07:36 PM 1
Share

Yes that is really quite strange. I just made a test where i added 2 cubes in a scene added a rigidbody and a box collider. then i set the same layer for both of them and then went into the physics settings and disabled the collision.

Try the same with your Zombies layer. I'm guessing that this will work and the mistake is somewhere in the colliders but just to make sure.

Also would it be possible for you to insert a web player demo to the question so that i can have a look at it (you don't have to if you don't want to).

I still think that there may be a collider somewhere hidden on a gameoject you didn't expect one to be on.

Show more comments

1 Reply

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

Answer by Justei · May 03, 2013 at 07:22 PM

Solution to the problem: The problem appairently did not lie in the collisions, it was the navmeshagent that was messing things up!

Setting: ObstacleAvoidanceType to "None"

Did the trick! Thanks to ExTheSea for the help on figuring out that it's not the collision that was the problem! :) (And for giving me even more insight into how collisions actually work).

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 ExTheSea · May 03, 2013 at 08:39 PM 0
Share

No problem i'm happy to have helped you. Now you should accept your answer and maybe if you want thumbs up comments that helped you ;) (you of course don't have to)

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

13 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

Related Questions

Prevent a specific RB to influence another, but still collide with everything 0 Answers

Character Controller - Collision Detection 1 Answer

How can I stop a rigidbody (Ragdoll) character from colliding with the Character Controller capsule? 1 Answer

Disabling Kinematic on hit 2 Answers

Ragdoll with multiple colliders 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