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 /
This question was closed Jan 16, 2016 at 09:25 PM by Fattie.
avatar image
0
Question by adrianks47 · Nov 02, 2013 at 11:05 PM · performancemesh colliderbox colliderpolygons

Wich is faster? Mesh collider or lots of primitive colliders?

I am making the map geometry of my game, and it has a big city where you can go inside most buildings, and i was making the collision for the meshs combining lots of primitive colliders. But it takes too much time to make, so i was wondering if i could'nt just use a mesh collider instead. Will it affect too much my performance?

Example:

I have a large building, Its made out of around 4000 polygons. Around 3000 vertices. And its composed by near 76 box colliders.

Took a while to make. Would it be better to use a mesh collider?

Comment
Add comment · Show 3
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 Benproductions1 · Nov 02, 2013 at 11:08 PM 0
Share

That depends on the shape. Also consider that statically marked colliders are highly optimised because their collision data can be "baked" into a tree and therefore only checked if it needs to be.

avatar image Fattie · Jan 16, 2016 at 05:50 PM 0
Share

you never use mesh colliders for anything.

"But it takes too much time to make"

that's called "making a video game" :) most of making a game is sitting there deciding how to make the colliders, that is to say box colliders, work.

avatar image Graphics_Dev Fattie · Jan 16, 2016 at 08:01 PM 0
Share

Agreed you never use default mesh colliders, but in many cases its beneficial to use a lower poly mesh as a collider (either way you'll have to spend some time on colliders). 4000 tris is WAY to many for today's performance capabilities.

1 Reply

  • Sort: 
avatar image
0

Answer by zanearn · Nov 12, 2013 at 02:48 PM

Given the number 4000, I think it is safe to say primitive colliders will still win. But hey, don't worry about the performance until you really sees an impact. So just use mesh collider and test the game, if it is ok then mesh collider it is. Make box colliders only when you have to.

I've seen approximate lower-poly meshes used as mesh collider of higher-poly one, but it's rare.

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 Fattie · Jan 16, 2016 at 09:24 PM 0
Share

Never, ever use mesh colliders.

(The only exception really is, in certain cases, for ground surfaces.)

"I've seen approximate lower-poly meshes used as mesh collider of higher-poly one, but it's rare."

Well it's not really rare - it's exactly what you do, in every project where that is relevant, just as GraphicsDev mentions. But it has no connection to the question at hand from the OP.

Follow this Question

Answers Answers and Comments

19 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

Related Questions

Use mesh collider on a lowpoly model instead of multiple boxcolliders? 3 Answers

Mesh Colliders, best practice for large meshes? 1 Answer

In WebGL build, Rigidbody only collides with Mesh Collider if it has previously collided with Box Collider 4 Answers

Where and when to avoid using mesh Colliders for performance issues. 1 Answer

Mesh Collider falling through Box Colliders 2 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