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 Taorcb · Aug 24, 2015 at 11:58 AM · collisionphysicsragdoll

Stop ragdolls from colliding with each other?

So, I'm making a third person shooter, and I want the dead bodies to be ragdolls. Normal stuff. So now I've run into a problem where ragdolls collide with each other (which they should). I don't want that to happen. I know how to use a Physics.IgnoreLayerCollision(), but setting that to ignore collisions on my "ragdolls" layer (layer 11) stops the ragdolls from colliding with themselves (one ragdoll's arm will fall through his torso). I only want ragdolls to not collide with other ragdolls. Their arms should not fall through their chests. This is seen in pretty much every shooter ever, and yet I can't figure it out. Can anybody help?

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 Craftnime · Aug 27, 2015 at 09:19 AM

Ah! On the top of the inspector panel (In default layout it is on your right) there should be two dropdowns, one called Tag and one called Layer. You click on the layer dropdown (in which it should be Default) and you go alll the way down in order to click on "Add Layer...". You should be brought to an editable list sort of thing in the inspector panel. On one of the empty "User Layer" slots, type in the name of your new layer, named "Ragdoll_body".

Assuming all your ragdolls are in the "Ragdoll" layer, move all the torsos (well, all the parts of the main body, not the arms, legs or head) to the layer "Ragdoll_body" (If you get a popup, just click "change all children as well"). Then on the top bar, you would want to go to Edit>Project Settings>Physics. You should see a checkbox triangle grid on the inspector panel. On the checkbox that lines up with "Ragdoll" and "Ragdoll", uncheck it so that the tick disappears. On the checkbox that lines up with "Ragdoll_body" and "Ragdoll_body", uncheck it so that the tick disappears as well. Now your collision problem should be fixed. Also no need for that ignore collision command.

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 TheonlysiQ · Jun 02, 2020 at 11:13 AM

On the hopes that you guys are still active here, I will be posting my feedback about this issue.
The solution @Craftnime proposed seems to work, albeit having an unintended effect: While the ragdoll wont collide with other ragdolls, it wont collide with itself anymore either, which is not desired (at least not by me). So do you have any ideas what i could do in order to achieve only the desired result?

Reference ticket created specifically for this question: https://answers.unity.com/questions/1736445/i-want-ragdolls-to-not-collide-with-eachother-but.html

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Character animation/ragdoll problem 1 Answer

Why is my ragdoll reacting differently depending on the framerate? 2 Answers

Ragdoll collision precision 0 Answers

How to make physics collision dotted simulation like bubble shooter ? 2 Answers

Very simple collision death 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