Several box colliders stacked on top of eachother gives bouncing effect

Hello

I’m making a physics game (again, i love those things), but one thing i cant seem to get right in any of the games i’ve made so far is the collision effect, i’ve finally had enough as its become a too large hindrance in this game, so now im asking for help.

This game is basically about building a tower as high as possible by using boxes. there is an issue though, when i’ve got 4 or more boxcolliders stacked on top of eachother the physics engine goes bonkers.

The boxcolliders which are supposed to be solid, i’ve given them the metal material, are getting all bouncy, which means that if i drop a new box on top of the stack it bounces and then settles into place, i dont want this to happen. I’ve messed around with the physics settings but i havnt really found anything that helped.

Can anyone help me with this issue?

Thanks in Advance

  • Kacer

I tested stacking primitive cubes with mass 1 and they behaved as expected. There was a little bouncing when several blocks were stacked, which after some time made the tower oscilate until it fell to the ground (limit about 15 to 17 blocks).

I tried other materials, what didn’t change the result too much, then I used brute force: attached the script below to the block prefab.

var damp: float = 0.01;

function FixedUpdate(){
    rigidbody.velocity.y *= (1-damp);
}

This code damps the vertical velocity exponentially: in the example above, it reduces the vertical velocity 1% each physics cycle (50 cycles per second). You can adjust the damp factor to reach the desired results. It also affects the falling speed - but not so much: the blocks fall more like gigantic building blocks.

I try to deal directly with physic setting in PhysicsManager

Min Penetration For Penalty ← lower this value

Solver Iteration Count ← higher this one

this setting seem help but cost more processing power.