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

How big and how fast are the objects?

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

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.

Maybe it's the value for the radius of your Faux Gravity script?

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

3 Answers

3

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.

I tried changing the min 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?

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

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