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 Pritamde12 · May 19, 2013 at 02:02 AM · meshmesh collider

Wrong Mesh Generation

Hello, i have a disc with a hole in the center that i imported from maya. In Unity, when i add Mesh collider the collider generates all over the object i.e across the hole in the center making it useless...What should i do?alt text

meshproblem.png (155.7 kB)
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 Benproductions1 · May 20, 2013 at 12:18 AM 2
Share

Untick Convex

avatar image Benproductions1 · May 20, 2013 at 12:18 AM 0
Share

Then learn what convex is and realise where you went wrong :)

1 Reply

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

Answer by Pritamde12 · May 20, 2013 at 01:41 AM

Convex=your mesh collider wont have Holes or entrances. To add colliders to such objects where you need the holes you must make several child objects with primitive colliders such as box colliders. In the above case four box colliders can be used to cover the entire area of the disc and also doesnt disturb the hole in the center. This is the only way.

alt text


solve.png (80.3 kB)
Comment
Add comment · Show 10 · 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 sparkzbarca · May 20, 2013 at 01:43 AM 0
Share

no actually there is a second way.

Cut the object in half and have 2 convex shaped colliders.

The best way though is to try to use non mesh colliders.

avatar image Benproductions1 · May 20, 2013 at 02:50 AM 1
Share

No, actually cutting it in half will cause the same problem, you would need to cut it into each separate convex shape, aka each piece of the circle

avatar image Benproductions1 · May 20, 2013 at 03:02 AM 2
Share

No, 2 halves of a circle with a hole is not convex, it's concave. It still has a concave "hole" in it. You'd have to split it into as many shapes as the edge is made of to get a concave collider.

avatar image Benproductions1 · May 20, 2013 at 11:11 PM 1
Share

It doesn't contain a hole (Thats why it was in quotes) but it is not convex, therefore the collision would still be the same. Try it out if you don't believe me! $$anonymous$$ake that shape, cut it in half and watch the two convex colliders make the same shape as it it weren't split.

avatar image Bunny83 · May 21, 2013 at 01:02 AM 1
Share

@sparkzbarca: The convex hull can never go "inwards" so it never has a surface angle lower than 180° on the outside. If you cut the collider into two pieces the half-hole would still be "filled" because it goes inward. The convexhull in 2d is like a rubberband which you put around the object and let it shrink. Wherever the object has a concave shape the convex hull will "remove" them by making it "flat" at this point.

Show more comments

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

16 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

Related Questions

Why is my mesh collider not the same shape as the mesh of the object? 1 Answer

Mesh Collider, Convex Separating Meshes 1 Answer

mesh error 0 Answers

Mesh collider with a mesh created by code returns incorrect results. 3 Answers

Technique to find a mesh intersecting with a primitive solid without using 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