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 Izorth · Apr 13, 2018 at 07:27 PM · unity 5meshcollidermatch

Object dos not match with the mesh collider

The mesh collider component doesn't line up with the object itself, I tried to make an empty object and add the mesh collider to the empty object, but it didn't work so... the error appeared when in the original object added the mesh collider compoment and..you can see it in the image:

alt text

alt text

bug1.jpg (215.2 kB)
bug2.jpg (221.9 kB)
Comment
Add comment · Show 1
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 Izorth · Apr 13, 2018 at 07:28 PM 0
Share

every help is welcome. thnx

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by TreyH · Apr 13, 2018 at 09:03 PM

You've checked IsConvex. Uncheck that to get your actual model.

Convex is an optimizer that will reduce poly count on your actual collider by removing gaps / holes.

Comment
Add comment · Show 2 · 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 TreyH · Apr 13, 2018 at 09:04 PM 0
Share

As for why it's rotated, you might have an import error with the mesh itself? Did you make it in blender, by chance?

avatar image Bunny83 · Apr 13, 2018 at 09:16 PM 1
Share

Also note that the model seems to have an animation. So it's possible that the animation actually changes the orientation. Further more keep in $$anonymous$$d that a mesh collider is never "skinned". You can't have a mesh collider on an animated model that deforms with the model.

avatar image
1

Answer by bunnynsnake · Apr 13, 2018 at 08:13 PM

The mesh collider will take on the shape of whatever mesh is plugged into it. You have to plug in the correct mesh for it to work properly. Also, if it is a complex mesh, and you need it to be complex, make sure you have "convex" and "smooth sphere collider" unchecked.

it's up to you to make sure you've got the proper mesh attached.

To set the mesh of a mesh collider, simply select the "mesh" field in the mesh collider component in the inspector and edit it.

Go here for more information on mesh colliders.

Comment
Add comment · Show 3 · 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 Izorth · Apr 13, 2018 at 08:58 PM 1
Share

Yes, i already do that, but the mesh is inverted, -90 degrees rotated (Y possition), and i can't change it, don't know how. No necesarily complex mesh. Thanks you anyway, by now i used a box collider xd

avatar image bunnynsnake Izorth · Apr 13, 2018 at 09:00 PM 0
Share

A different collider works too :p

avatar image Izorth · Apr 13, 2018 at 09:02 PM 0
Share

And i check the convex box to see the bug

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

158 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 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 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 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 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 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 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 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 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 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

Mesh collider without Rigidbodies 1 Answer

Unity 5 Mesh Triggers - OnTriggerEnter / OnTriggerExit called repeatedly 1 Answer

Tiling problem: how to know where to put next tile? 1 Answer

Workaround for Non-convex MeshCollider cannot be used as a trigger in Unity 5 0 Answers

Gameobject falls through terrain when instantiated, but original does not 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