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 Meltdown · Mar 25, 2011 at 05:57 PM · rigidbodycollidermesh

Is there any way to improve collision detection accuracy with the mesh collider?

I have a rigidbody set to continous dynamic. I have been playing around for hours, editing the Solver Iteration Count, Min Penetration for Penalty, mass, etc properties in the physics, along with constantly trying different values on my rigidbody and mesh collider wall.

No matter what I do, in certain instances, the rigidbody is going through the wall without colliding. If I reduce the velocity of the rigidbody, the collision is correct, however the velocity I require to simulate real life speed, in certain cases, sends the rigidbody through the wall with no collision. If I add a force of about 500 on my rigidbody, that has a mass of 1, and drag of 1, and angulardrag of 5, it collides fine. If I go over 600, it goes through the wall. Min penetration for penalty I have tried 0.0001, Solver Count even up to 200, no difference.

The only solution I have found is to create a box collider for my wall, then all collisions work perfectly. The problem with this is many parts of my wall are curved, which makes it difficult to accurately place box colliders.

So besides having to painstakingly place box colliders and line them up seamless and perfectly, is there anything else I can try to get my rigidbody colliding better with my mesh collider wall?

Comment
Add comment · Show 2
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 Jessy · Mar 25, 2011 at 06:43 PM 1
Share

It's not hard to make colliders if you use a modeling tool. http://www.unifycommunity.com/wiki/index.php?title=$$anonymous$$esh2Collider

avatar image Meltdown · Mar 25, 2011 at 07:39 PM 0
Share

Thanks I will check that out.

2 Replies

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

Answer by Paul 7 · Mar 25, 2011 at 07:56 PM

Check this out. It might help.

http://wiki.unity3d.com/index.php?title=DontGoThroughThings

Comment
Add comment · Show 7 · 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 Meltdown · Mar 25, 2011 at 08:16 PM 0
Share

Thanks, will take a look at that as well.

avatar image Meltdown · Mar 27, 2011 at 06:34 PM 0
Share

After extensive testing this seems to be the most feasible solution. Thank you.

avatar image noobgamedeverrk · Feb 03, 2015 at 05:32 PM 0
Share

Does anyone have the DontGoThroughThings Script, because i think the domain is no longer in use.

avatar image meat5000 ♦ · Feb 13, 2015 at 05:31 PM 0
Share

Link Updated

avatar image congtrungvnit · Sep 17, 2016 at 01:36 PM 0
Share

Hi. I'm encountering the same issue right now. But my character hadn't collider attach directly to it. It has compound collider attach to different body parts. How can I use this?

Show more comments
avatar image
1

Answer by Jason B · Mar 25, 2011 at 08:22 PM

Another thing to try is going into the time settings and setting your fixed update interval to a smaller number. Just don't overdo it, because this alters how many times per second physics are calculated (so for instance, halving it will automatically DOUBLE the workload of physics interactions), but it is an avenue to consider when you have a lot of fast-moving objects that are in danger of going through things.

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 Meltdown · Mar 27, 2011 at 06:35 PM 0
Share

Aaah not to worry. Even on 0.005 my object is still going through the wall in some places. The DontGoThroughThings script as mentioned above has worked out to be the best solution.

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

2 People are following this question.

avatar image avatar image

Related Questions

collision between a rigidbody and a mesh collider not working 1 Answer

Unreliable collision detection between rigidbody and mesh collider 1 Answer

Workaround to Non-Convex mesh colliders with non-Kinematic RigidBodies? 1 Answer

Rigidbody objects not colliding. 4 Answers

How to remove internal triangle/faces when combining mesh 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