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 Madman07 · Jun 18, 2012 at 08:02 PM · collisionphysicsphysxconvexconcave

Concave colliders from smaller pieces

What should I do, when I need to have many space ships using concave collision? When I was using Havok, we always divided such complicated collisions into many (for example 20-30) boxes and other primitives. So I did the same thing for unity. Hovewer, it threat it as concave mesh instead of multiple convex. Example collision for one ship. Green is a collision made from simple objects like boxes, etc. I'm not happy about placing all that boxes via unity editor. It will take hours (especially, that ship has interior).

Any fix? I doubt that PhysX is less superior than Havok.

http://i45.tinypic.com/1z6z4np.jpg

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 Wolfram · Jun 18, 2012 at 09:25 PM 0
Share

Stargate :o)

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Wolfram · Jun 18, 2012 at 08:32 PM

Well, it mostly depends on how precise you need the colliders to be. Does it really have to be precise on a triangle level? And does it have to be convex, or would a normal mesh collider suffice?

Maybe a mixture of convex submeshes and hand-placed boxed/capsules? Also, checking the "convex" flag will severely limit the number of polygons the generated mesh collider can have, so it usually won't be a perfect fit anyway.

You could also create a low-poly version of your model (and without interior), probably split it into several convex meshes, and then use a mesh collider for that object, while rendering the high-poly version.

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
avatar image
1

Answer by UGTools · Oct 10, 2012 at 10:54 AM

This is maybe what you are looking for: http://www.youtube.com/watch?v=mu__FxT8Gzk

It generates colliders for concave objects. In the end, it automates the process you are describing (creating multiple convex colliders to fit a concave shape with precision).

It is available at the Unity3D Asset Store: http://u3d.as/content/ultimate-game-tools/concave-collider/3rS

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
avatar image
0

Answer by Madman07 · Jun 19, 2012 at 05:58 PM

@"Does it really have to be precise on a triangle level?"

It has to be when ship shield is not active. Energy bullets and other weapons cannot explode meters from hull.

@"You could also create a low-poly version of your model (and without interior), probably split it into several convex meshes, and then use a mesh collider for that object, while rendering the high-poly version."

And this is exactly what I've proposed. Hovewer how to get concave mesh from convex parts if they are placed in one signle file? I'm not happy of exporting many small parts.

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 whydoidoit · Jun 19, 2012 at 06:00 PM 0
Share

Please use comments when not providing a Solution. There is an Add New Comment button hidden on the right of the screen.

avatar image whydoidoit · Jun 19, 2012 at 06:01 PM 0
Share

Also mesh colliders are subject to back face culling I believe. That is really not helpful.

avatar image Madman07 · Jun 19, 2012 at 06:24 PM 0
Share

Ah, sorry. I didn't know about this rule.

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

Alternatives to OnCollision methods/messages for many physics objects? 0 Answers

What is the best way to prevent a physics object from going through thin colliders? 2 Answers

Excluding some physics collisions 3 Answers

PhysX and multiple instances at same location 1 Answer

Getting "Internal error: Too many pairs created" without any apparent reason 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