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 Erethan · Feb 18, 2016 at 11:13 PM · physicsmeshmodelmeshcollider

Breakdown non-convex complex Meshes to Convex parts

I have a ship mesh that I want to add a collider(or colliders) on it. What is the best way for me to break down into smaller parts? Where should I try to use primitive colliders, and where should I model parts of a mesh?

Here is my ship with "forced" convex mesh. alt text

meshcollider.png (205.5 kB)
Comment
Add comment · Show 3
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 Cherno · Feb 19, 2016 at 01:27 AM 1
Share

I'd do it in your 3D modeling application and use the resulting convex meshes for a compound collider (multiple mesh colliders on the same gameobject).

avatar image Erethan Cherno · Feb 19, 2016 at 05:12 PM 0
Share

The thing is... If I separate the hull and try to make a mesh collider out of it, even thou, it won't be convex! Is there any option rather than make tiny parts and have like 50 colliders for my ship?

Imagine this: When making a collider for those stairs in the picture, either I do an approximation(make it more like a ramp) or I break every single step into a different mesh, and in the case of that stair, I will have 8 mesh colliders for one stair. Isn't there any workaround that?

avatar image Cherno Erethan · Feb 19, 2016 at 06:12 PM 1
Share

No. If characters are supposed to walk on the ship, then detailed collision meshes are needed, as if it were a building or similar part of the world. If the ship is more like a unit in an RTS, a more simple collider is sufficient. Also, using ramp colliders for stairs is quite normal.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by CMCmaster · Feb 15, 2017 at 07:36 AM

If the mesh is generated by code or has arbitrary geometry you could make a script which scans every edge of the mesh ; if it is concave cut along a plane defined by the end of the normal of the edge and the edge ; repeat for the resulting bodies and you have a lot of convex parts :) OR YOU COULD JUST DO IT MANUALLY BY ADDING MORE PREDEFINED COLLIDERS IF THE MESH IS NOT TOO COMPLEX TO DO IT BY HAND GOOD LUCK :)

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 CMCmaster · Feb 14, 2017 at 10:38 PM 0
Share

I will give you the script once i finish it

avatar image
0

Answer by Raresh · Feb 14, 2017 at 11:10 PM

https://www.assetstore.unity3d.com/en/#!/content/4596

You can try this asset, you will still need to do some mesh splitting to get really accurate results, but that will be a lot less work for you than doing it manually for components.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Player falls through Curved Mesh Colliders 1 Answer

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

MeshCollider Collision Table 2 Answers

Implementing Meshless Deformation 0 Answers

Adaptive Mesh 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