Rigidbody Bounces Off Box Collider
I'm pretty much a beginner but I have my player, a cube, and two cubes as walls (i stretched them out a bit). The player has a rigidbody and the walls have box colliders. When I move my character into the walls, they go a little into the wall and then bounce out. I tried a lot of other solutions that didn't work. I just want the wall to act like a wall-the player should stop moving when hitting it.
Answer by Ferofax · Feb 06, 2016 at 12:11 PM
Could be that you have the Min Penetration For Penalty set too low?
"Rigidbodies Partially Sinking Into Geometry Most physics engines have some kind of parameter dictating how much two objects can be interpenetrating or intersecting until they are pushed away from one another. This parameter is called Min Penetration For Penalty in Unity. By default this value is 0.01 (meters), meaning that, by default, objects can be intersecting up to 1 centimeter (almost 0.4 inches) before being pushed apart.
You should set Min Penetration For Penalty to a value where it is barely noticeable that objects are intersecting. Setting the value to something tiny, such as 0.0001, may result in jittery rigidbodies."