Sphere clipping in cube

Hi,

I’ve a sphere which role over a cube. The problem is that the sphere bottom clipping into the cube. It’s just the bottom of the sphere. The problem is, that the sphere is jumping up if it reach the end of the cube and jumping down if it role over the next cube.

The cube has a box collider, but I haven’t changed anything. The sphere has a rigid body, sphere collider and a little script which move the sphere forward:

rigidbody.AddForce(acceleration, 0f, 0f, ForceMode.Acceleration);

Did I forget anything? I changed the sphere collider but the result is the same. The bottom of the collider is clipping into the cube and the sphere begin jumping at the end of the cube.

Unity 4.1.3 for OS X.

Tuni

From the Edit menu, select Project Settings/Physics. Try setting the Min Penetration for Penalty to 0.0.

From the manual entry on Min Penetration For Penalty:

How deep in meters are two objects allowed to penetrate before the collision solver pushes them apart. A higher value will make objects penetrate more but reduces jitter.

Read more about the Physics Manager here:

http://docs.unity3d.com/Documentation/Components/class-PhysicsManager.html