Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 DrSchuess · Feb 26, 2010 at 07:21 PM · physicscollidermeshimportblender

Applying a Proper Mesh Collider to a Blender Import

I have been creating some 3D elements using Blender and I can't seem to get the mesh collider setting right. My models will render in my scene, but the physics is applied incorrectly. When I apply a mesh collider to my model as one unit, the mesh appears to be rotated 90 degrees from the actual object. What should I do in order to create a mesh that fits my model? Should the collider be applied to the object as a whole, or to an individual part of the object? Any pointers on importing from Blender or just applying physics colliders to custom objects would be greatly appreciated.

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

4 Replies

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

Answer by DrSchuess · Feb 28, 2010 at 12:59 AM

I think I found a relatively easy way to fix the problem without having to go back into blender and re-positioning the object. When the asset is imported as a prefab, under the inspector expand the (FBXImporter) component. Checking the "Generate Colliders" box applies mesh colliders to the individual parts of the object, and the entire object has a new collider that is oriented correctly with its position.

One thing I have noted though is that my object still has a habit of falling through a created terrain, especially on an incline when the object is rolling and a narrower part of the object contacts the terrain. I think that this however is something different from my original problem, so it might be easily fixed by creating a thicker mesh. Can anyone check me on this?

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 Jessy · Mar 01, 2010 at 07:54 AM 0
Share

That's what I told you to do. Is it really so hard to figure out that you should check "Generate Colliders" ins$$anonymous$$d of "$$anonymous$$eshes have colliders", which is what the option used to be called, and is still called in Unity iPhone?

avatar image DrSchuess · Mar 13, 2010 at 12:22 AM 0
Share

You were not very specific in your explanation, Jessy, especially as to where this function might be located. Since that option no longer exists, it doesn't show up in the Unity search. This answer is much more specific.

avatar image Proportion 1 · Mar 25, 2010 at 08:52 PM 0
Share

hey soz i wasnt reading comments, i have a vid that should explain my way as good as i can explain it http://vimeo.com/9798695

avatar image
0
Best Answer

Answer by Proportion 1 · Feb 27, 2010 at 11:14 AM

where is that import setting? EDIT i figured it out dood, when u bake the scale and rotation, it doesn't apply it the same direction aka 90degrees wrong. so go into blender and open up your problem object, rotate it 90 degrees in the opposite direction (if collider is facing down in unity, face it up in blender) then in the 3d view header, go object | clear/apply | apply scale/rot to obdata. after you have done that rotate your object back to its original position and save.

problem solved !!

(well it did for me any way heh)

Comment
Add comment · Show 2 · 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 Motionreactor · Feb 27, 2010 at 02:45 PM 0
Share

Please note: You just made a comment to the previous answer by filling in a new answer. You should have responded to the previous answer with the 'add comment' text link.

avatar image DrSchuess · Feb 28, 2010 at 12:49 AM 0
Share

I think I followed all of your instructions correctly but I couldn't get it to work for me. Should all the of the meshes be joined as one or is there anything else I might be missing?

avatar image
0

Answer by Jessy · Feb 26, 2010 at 11:48 PM

Blender doesn't use the same axis convention as Unity. Why don't you just use the import setting, "Meshes have colliders"? That automatically orients the collider properly.

Comment
Add comment · Show 2 · 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 DrSchuess · Feb 27, 2010 at 09:00 PM 0
Share

Where is this setting? I wasn't able to find it. Does it work regardless of the object's rotation in blender?

avatar image DrSchuess · Feb 28, 2010 at 12:45 AM 0
Share

Are you talking about the "generate colliders" option under the (FBXImporter) menu of the imported prefab?

avatar image
0

Answer by vipinsoni38 · Mar 13, 2020 at 04:36 AM

I think to make a new Prefab works. in my case, I imported objects from blender and then added its mesh models to my new GameObject and made a prefab then applied collider. worked for me :)

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

1 Person is following this question.

avatar image

Related Questions

Object Colliders 2 Answers

Imported Blender meshes, added Unity box colliders - scene goes choppy, slow. 1 Answer

Importing .blend file - Missing Animation 1 Answer

mesh from blender twinkle on unity 0 Answers

What is the best practice for character colliders? 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