So I am trying to set up a simple 2D platformer. I have Box colliders on my character and walls/floors. The collision is handled, just not correctly. When you collide with a wall, the character partially penetrates that wall, then the wall forces them back out causes a bouncing effect, and I can't get the character to stop flush to a wall.
The effect is basically a vibration between the two pictures below. I also have a link to a video for further clarification.
***Note : amtToMove is a float set to 5;
I have tried moving the character using Impulses, basic forces, and using basic translation. I am also handling the movement in the FixedUpdate() function.
I appreciate any and all help.
You could check your Physics Settings in Edit > Project Settings > Physics. Min Penetration For Penalty or Solver Iteration Count can correct your problem. More precisions are in the Reference Manual.
If not sufficient, you could use greater object scales as this problem will be less visible at higher scales.