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 Johan 4 · Jan 31, 2011 at 07:33 PM · collisionphysicsmesh

Using your own mesh for collision?

I have made my own mesh in an external 3d application and a physics mesh to go along with it, but how can I use that phys mesh in unity? Mesh Collider thingy seems to generate it's own model instead of using mine.

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

2 Replies

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

Answer by 3DMagicVR · Jan 31, 2011 at 07:46 PM

Hi, try this:

Enter in the model you got on the hierarchy panel and add a Mesh Collider to the model not to the root and if you got a collider on the root eliminate it, this way you can use your own mesh for collision, but one thing, mesh collider with mesh collider don't generate any collision.

Your object hierarchy must be like this on the hierarchy view: 3D Object Name > Bones, Mesh 1, Mesh 2, etc.

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 Borgo · Jan 31, 2011 at 07:52 PM

The mesh collider can be used in 2 ways:

1 - non-convex: in this case, it will use your mesh to generate collisions, the problem is that you can't do collisions between non-convex colliders.

2 - convex: in this case, it will generate a collider that will interage with others convex mesh colliders, but, the mesh can't be more than 255 triangles and will not cover your mesh at all, instead, it will create a convex form of your mesh. Just active this options and see in the scene viewer, it will change the collor to green.

See the documentation:
http://unity3d.com/support/documentation/Components/class-MeshCollider.html

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 Johan 4 · Jan 31, 2011 at 10:35 PM 0
Share

So it's not possible to have custom collision on an object that will actually move? That sucks badly.

avatar image Jesse Anders · Jan 31, 2011 at 10:57 PM 0
Share

@Johan: If you're referring to the convexity limitation, then that's fairly standard (collision detection and resolution between multiple arbitrary non-convex objects is highly non-trivial). If you mean something else though, perhaps you could clarify.

avatar image Borgo · Feb 01, 2011 at 12:14 PM 1
Share

the mesh collision slow down too much performance. Even best cars simulation games uses basic colliders, you can create a variety of colliders and group then to make a "custom collider".

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

No one has followed this question yet.

Related Questions

Checking collisions between two objects that don't have rigidbodies 1 Answer

Colliders coming away from their parent object? 1 Answer

Procedural Geometry doesn't collide.. 1 Answer

Normal vector from collision? 1 Answer

Rigidbody w/ sphere collider falls or pushes through mesh collider. 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