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 NeMewSys · Aug 02, 2012 at 06:35 PM · collisionmeshprefabcustommeshes

How do I apply a custom collision mesh?

Hi guys, I have an object that represents a collision mesh, and another object where i want to apply that collision mesh instead of the generated/calculated one.

So i created both objects, and in the target object that i want to apply the mesh i've created a Mesh collider:

http://i47.tinypic.com/1zxcb8.png

Then i've tested it, everything works fine because he calculated stuff correctly, but now i want to replace my current collider mesh with the one i created, so i go to the Select Mesh window, but the problem is that my object that would serve as collision mesh doesn't appear in the list......

http://i45.tinypic.com/e88ps9.png

http://i47.tinypic.com/mj8dgi.png

What should i do now? Thanks!

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
3
Best Answer

Answer by Meltdown · Aug 02, 2012 at 06:48 PM

Create two seperate game objects.

One with a Mesh Renderer that shows your object.

And another game object that has no mesh renderer, but has your mesh collider. (You can turn on the mesh renderer for placement purposes), but you will turn it off again.

Comment
Add comment · Show 5 · 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 NeMewSys · Aug 02, 2012 at 07:00 PM 0
Share

Thanks for helping!

That works for static objects, but what if my target object moves in the screen? The mesh collider must move with it, how can i do that?

avatar image Meltdown · Aug 02, 2012 at 07:02 PM 0
Share

$$anonymous$$ake the mesh collider game object a child of the other game object.

avatar image NeMewSys · Aug 02, 2012 at 07:18 PM 0
Share

Ah, cool! Thanks guys!

Ps. Excelent support here! Very fast and accurate answers! :)

avatar image Meltdown · Aug 02, 2012 at 07:22 PM 0
Share

No problem. Please show your appreciation by upvoting a post when it helps you and marking as answer if it solved your question.

avatar image NeMewSys · Aug 02, 2012 at 07:46 PM 0
Share

I tried but i got this error: "You don't have permission to do this action. Please Login as another user"

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

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Different prefabs using same mesh. Any performance gain? 1 Answer

Collision massively misplaced 0 Answers

Can I use the mass-tree place tool to place something like a rock? 3 Answers

How to alter the mesh of an animated prefab without breaking prefab or losing animations? 1 Answer

Implementing Meshless Deformation 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