Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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 Caolan · Jul 04, 2015 at 09:56 AM · physicscollidermeshmeshcollider

Mesh Collider won't draw the mesh I am telling it to?

I have an object that I am trying to place a mesh collider on. To do this I have created a slightly smaller (and more basic) 6 sided panel and brought it into Unity with my object to be used to generate a more basic mesh collider than the one that would have been generated had I just used my objects own mesh.

The problem is when I do this, the mesh collider does seem to use the more basic mesh for generating the collider. But it seems to make it bigger? I want my mesh collider to be slightly smaller than my object for gameplay reasons but the mesh collider is too big.

For instance; this is the mesh that is selected in my objects mesh collider window, inside the object I am talking about:

alt text

When I turn the collider to 'convex', the blue lines should be green, right?

but instead this happens:

alt text

See that it DOES use the mesh I have selected to draw the mesh collider, BUT it has made it bigger to fit around my entire object. I do not want this. Whats up with that?

In my second screen grab you can still see my mesh being used to generate the mesh collider inside my object and it is blatantly smaller than the mesh collider that it has created.

Can anyone help me out and tell whats going on, or how to fix this?

unitygrab3.png (36.4 kB)
unityquestion1.png (33.5 kB)
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 Radetic · Jul 15, 2015 at 04:54 PM

@Caolan, the MeshCollider component allow you to choose which mesh to use for the collider. For what I can see, your mesh is already convex, so you don't need to checkbox that property. As a final resouce, you can always alter the import settings of the file where you get the mesh from. That should make it smaller as an asset when compared to other assets using the same scale.

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 Caolan · Jul 21, 2015 at 10:53 PM 0
Share

Thanks for the reply, I actually need it convex because the game is made up of mesh colliders interacting with each other. I ended up buying a plugin that generates compound colliders automatically. Huge time saver and much more versitile than the default Unity mesh collider. Here is the plugin for anyone interested: Concave Colliders

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

Collision mesh data problem in Unity WebPlayer 2 Answers

Mesh Collider not colliding 1 Answer

Trouble with Inaccurate Mesh Collider 0 Answers

Ignore/Destroy then re-enable Mesh Colliders 3 Answers

Non-Convex Mesh Collider triangle limit - is it more than 255? 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