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
1
Question by Kailas · Dec 06, 2011 at 08:44 AM · physicsplanemesh collidercapsule

Plane Mesh Collider doesn't stop Capsule ... sometimes.

Hi everyone.

I've got a problem with the physics interaction between the inbuilt plane with its mesh collider and a capsule collider.

The plane is horizontal like a terrain, position at (0, 0, 0). The capsule is at its default orientation, just above the exact centre of the plane (0, 1.5, 0).

With the plane at (1, 1, 1) scale, the capsule stops on it perfectly fine. But with the plane at (2, 1, 2) scale, the capsule falls right through it. I can literally stop playing, change the scale and play it again to replicate this.

It only happens if both are at the 0 on the x and z axes. It only happens with a capsule, sphere and cube work fine. It only happens on some specific scales. It doesn't happen at (3, 1, 3) scale for example.

This makes no sense to me.

Does anyone have any ideas and can anyone replicate it?

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
0

Answer by Statement · Dec 06, 2011 at 09:16 AM

I can replicate it, yes.

It's probably due to floating point rounding errors. What you are experiencing is tunneling which happens if the object slide through the volume of the object. It's a common problem with physics and collision detection. A plane offer no volume and is unfortunately not ideal for collision stoppers. What you can try doing is setting the Collision Detection of your capsule to Continous, replacing the Mesh Collider with a Box Collider or attempting to increase PhysicsManager Solver Iteration Count.

Boxes and Spheres will also fall through if you put them high up and let them fall down with great speeds for instance. I am sure there exist some borderline positions for the cube and sphere close to the plane as well, although it might not be easy to find those "awkward spots".

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

In which cases Mesh Colliders they should not be used? 1 Answer

Physics sphere slows down when rolling on two wire rails like pinball machine wireform ramp 0 Answers

Compute mesh inertia tensor failed - NOT the usual problem 0 Answers

Realistic 2D flight physics? 0 Answers

CapsuleCast consistent error in size 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