• 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 Kev · Mar 21, 2011 at 09:17 PM · 2dcollision2d-gameplay

Sphere Collider Doesnt Work

I have colliders assigned to two spherical game objects with rigidbodies attached to them. For some reason the colliders wont collide right with each other. They kind of collide but the objects go partially through one another and then the collider starts to work. Sometimes the objects just go right through each other. The physics seem to just be really messed up in involving the collisions between the two objects. Oh, and my game is in 2d so the objects are constricted to the x and z axises. Ive tried everything but I cant figure it out. HELP?

Video Of The Problem: link text

Comment
Add comment · Show 5
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 Myth · Mar 21, 2011 at 09:18 PM 0
Share

How big and how fast are the objects?

avatar image Myth · Mar 21, 2011 at 09:23 PM 0
Share

Try increasing the radius of the collider - even small amounts can help

avatar image Kev · Mar 21, 2011 at 09:29 PM 0
Share

Ive already tried increasing the radius and that still doesn't fix the problem where the objects go through each other. Plus, it gives it a weird springy collision that still goes partially through the object.

avatar image efge · Mar 21, 2011 at 09:30 PM 0
Share

$$anonymous$$aybe it's the value for the radius of your Faux Gravity script?

avatar image Kev · Mar 21, 2011 at 09:38 PM 0
Share

Nope, not the faux gravity. I already tried changing the radius and even removing the faux gravity script.

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Thom Denick · Mar 21, 2011 at 09:36 PM

This is probably due to your Min Penetration for Penalty setting is set too high.

For fast-moving, small, cylindrical objects I have to set mine very low to get correct collisions: 0.001

You can find this setting in Edit -> Project Settings -> Physics.

Looking at the video - that looks almost definitely due to Penetration Penalty to me.

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 Kev · Mar 21, 2011 at 09:48 PM 0
Share

I tried changing the $$anonymous$$ penetration but even that didnt work. It improved to objects resistance to eachother a little bit but thats all. Could it be a problem with my version (3.3.0f4) of the software?

avatar image
0

Answer by Kev · Mar 21, 2011 at 10:09 PM

Problem Still not fixed by min penetration setting. More Help???

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
avatar image
0

Answer by Kev · Mar 21, 2011 at 10:58 PM

Figured out it was my drag object script that was messing up the collision. It was overriding the physics engine. Thanks Anyways.

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.

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

No one has followed this question yet.

Related Questions

How to check Hypothetical Collisions in 2D 1 Answer

Colliders 2d apparently touch each other even if they should not. 2 Answers

Collision problem 0 Answers

I'd like some help with my health / shooting (collision detection) 1 Answer

Multiple collision areas within plane 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