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 tuhinbhatt · Mar 14, 2013 at 11:16 AM · collisioncolliderpassinguntiy3d

Colliders of a two 3d Objects working differently(Coin Dozer Style Game)

I am using two coins in the game. The Game is of same concept as a game named Coin Dozer on Android Market. One Coin is a Round, Another one is Hexagonal. Both have mesh Colliders. Convex is checked in the collider. Collision Type is set to Continuous Dynamic

The problem is simple when i use Round Coin everything works perfectly and there is not a single problem, But as soon as i use that hexagonal coins, problems occur.

I am using a cube to push the coins off the table. When using Round Coins everything works perfect, cube pushes coins perfectly but as soon as i use the Hexagonal Coin ,Cube passes inside the Hexagonal Coin sometimes it collides and sometimes it doesnot.

I donot understand why this must be happening. Cube has mesh collider attached to it, also tried box collider but having the same result. Cube is animated by animation Clip. The Collision type is set to Continous Dynamic

This image is of Round coin that works perfectly alt text

This image is of Hexagon Coin that doesnot work perfectly alt text

round _type_coin that works perfectly.png (41.0 kB)
hexagon_coin coin with the problem.png (32.7 kB)
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
0

Answer by justin_iSO · Mar 14, 2013 at 02:52 PM

Firstly I would use a box collider on the cube instead of mesh because that is going to give you the best performance. As far as your problem goes, not really sure what is going on. Both round and hex have mesh colliders that are convex? Are there any other differences between hex and round such as rigid bodies, being on different layers, etc?

A good thing to try would be to put a primitive collider (such as box or wheel) instead of a mesh collider on both round and hex and see if you still only get one working. If you do then you know it is probably not the colliders themselves.

Lastly if primitive colliders work for you (and behave in a useful enough manner) I would make an argument to just keep using those if you are building a coin-dozer type game as you will get a good performance boost that way especially if using a significant number of coins at once.

Good luck! ~Justin

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

11 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

Related Questions

Destroying object when player walks over it 1 Answer

Ignore collision at high velocity. 1 Answer

Trouble with Physics.IgnoreCollision 0 Answers

Unwanted jittery behavior 2 Answers

Colliders in a wall jut out 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