I have a fairly simple setup with a ball and some walls (pic1). The ball (sphere) can be controlled along the x-axis (left-right). I change the position with:
transform.position.x -= moveSpeed * Time.deltaTime;
transform.position.x += moveSpeed * Time.deltaTime;
I've also tried transform.Translate and at very low speed. Physics.gravity makes the ball fall up or down on the y-axis and hit the boxes below and above. Both gravity and movement work fine and collisions with the top and bottom boxes are nice and clean.
But when the sphere is moved into the vertical side wall it overlaps it and, if the movement key is held down, stutters back and forth in and out of the wall (pic2). This feels like really basic stuff but I cannot find anything to fix it!?
