• 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 dkalinni · Dec 11, 2013 at 08:47 PM · 2dphysicsphysics 2d

game hags with several Polygon Colliders on the scene

Hello,

Recently I have got a problem with my 2d game project, and that confuses me a lot. The game is working fine on PC, but hangs on a splash screen when running on android (Nexus 5). Hangs forever, game actually is never started.

It took me a lot of time to determine why this is happen. I even recreate whole project step by step, constantly trying to run it on mobile phone.

I have discovered that when I'm adding second "Polygon Collider 2d" to the object (1 polygon collider per 1 object), the game just stopped working on my phone. Hangs on splash screen. Right after I have deleted that second polygon collider from object - everything is working again.

Can anybody explain why this happens? what I'm doing wrong? I have assigned simple "Box Collider 2D" on each of my objects end it works perfectly on the phone. Bu I need to have polygon colliders.

Comment
Add comment · Show 2
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 flaviusxvii · Dec 11, 2013 at 10:13 PM 0
Share

How many polygons per polygon collider? They are extremely expensive for the physics/collision engine. You'd be better off with a conglomeration of sphere/box colliders.

avatar image dkalinni · Dec 12, 2013 at 04:21 PM 0
Share

I dont know how to count polygons precisely. I mean they have a triangle form, and unity not always draw each of them. $$anonymous$$ost likely it is a several dots linked to each other by straight lines. But anyway, the object has complex shape, and I think there is at least 30 polygons for each of them. Thank you for advice, I will try to stay away from such complex colliders

0 Replies

· Add your reply
  • Sort: 

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

17 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

Related Questions

Is there a solution to when colliders bypass? 2 Answers

Size and Position of BoxCollider 2 Answers

Lights that ignore position.z of GameObject 0 Answers

Need help on my script to calculate gravity for a mass 1 Answer

Check if 2D Player is grounded with Physics2D.Linecast 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