Hello,
I am making a jenga like 3-d AR game using unity and ar foundation. I’ve just started with 3-d dev in unity and have written a code to instantiate the jenga blocks into a tower. The problem that I am facing is I think related to the physics of these blocks. The blocks have a particular bouncy like feeling when stacked and the blocks mostly in the middle and lower bottom part seem to be with deformities like a block is well inside the collider of another block(explained visually in the picture attached). This happens when the mass of all the blocks are the same but if i experiment by keeping the mass increasing from the topmost blocks to the bottom, this problem seems so stop and hence I am thinking it might be something related to the physics of these blocks. Can you please tell me how I can simulate the same with all the masses being equal?
Check you have used a physics material with bounce = 0 for all your colliders.
Try increasing Edit → Project Settings → Physics → Default Solver Iterations to 30. If this is stable then try reducing that number back until you get something small, but robust. This is the most likely issue as your stacked multiple collisions are difficult to resolve.
In the same settings area try using Solver Type: Temporal Gauss Seidel
Hey! Experimenting with the Default Solver Iterations seems to solve the issue as you’d suggested. Thanks!
Also I was moving to the next phase where I have to define accurate physics for the blocks to simulate a real world like behavior. Do you have any idea as to how I should approach this? Thanks again! Cheers!