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 3Nex · May 15, 2014 at 01:54 PM · colliderblendermodel

Making primitive colliders for FBX maps?

I am just getting into model-making and game development. So far one unanswered problem I encountered when importing big FBX models/houses (that I downloaded for free just to try out my movement and play around) is that the mesh collider, that Unity generates for it, slows down performance quite considerably, since it takes into account all of the details from the model. Since nobody really needs so much detail on a collider, my first question is this:

Is it possible to tell Unity to simplify the generated mesh collider and generate something very primitive that would just about get me to bump into walls and tables, but ignore all small details?

If that is not possible, then I have a follow-up question. Is it possible to include my collider into the FBX file format? Once I start making my own map, I am going to attempt to make the collider much more simple than the details on the map itself, but it doesn't make much sense to have it defined separately. If I change something on my map (in Blender), then I would have to separately change the collider for it in Unity. It should make more sense to define the collider for it right there inside Blender to have a more error-proof and compact solution and then export the collider as part of the FBX file itself, right?

What is the easiest solution to this?

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

Answer by torrente · May 15, 2014 at 02:33 PM

Andres,

I wouldn't go with instantiating two different objects (it looks like you are saying create one object and use only the visual properties and then a second, delete the visual properties, and use only an invisible collider).

Instead of creating two objects, and deleting/hiding the renderer of one, I'd do the following:

In Blender, export your two meshes (high poly and a low poly collider with a very basic design). I often name mine the same, and then add on "collision" or something like that. Then, when you instantiate the object (high poly visual part), make sure it has a mesh collider component. At the bottom of that component, there is a spot to assign the actual mesh to collide with. Drag the collision mesh to that spot and you should be all set. One object, optimized for both good visuals and a very clean collider.

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 Andres-Fernandez · May 15, 2014 at 02:43 PM 0
Share

It's just one object with two submeshes, with the low poly one being used for the collider. But now that I come to think of it, your answer is the correct way of doing it (I just wrote without actually thinking before, so I deleted my answer).

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

22 People are following this question.

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

Related Questions

Newbie Collider Queries. 1 Answer

MMD How to export model and animations to Unity as 3rd person controller? 2 Answers

Unity wont recognize High Definition Models from blender 0 Answers

Destroy On Collision will not work with spawned AI 1 Answer

subdividing in belnder wont carry into unity? 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