My character get’s stuck between cubes (that i use as platforms) when walking, just at the edge between them and the both cubes are side by side with no space in between.
My character has a rigidbody with freezed rotation axis.
I tried box collider, sphere collider, capsule collider… none of them seems to be the problem. I also tried adding a sphere colliders at the bottom of the box collider but nothing.
Cubes are box colliders with scale of (20, 1, 20).
EDIT - Here is a screenshot, there are the two cubes side by side and the capsule collider stuck between them:

EDIT2 - Rigidbody

Edit3 - Movement Script:
Vector3 dir = movementJoystick.inputDirection;
Vector3 forward = mainCamera.transform.TransformDirection (Vector3.forward);
forward.y = 0;
forward = forward.normalized;
Vector3 right = new Vector3 (forward.z, 0, -forward.x);
float h = dir.x;
float v = dir.z;
dir = h * right + v * forward;
body.position += dir * (Time.deltaTime * walkSpeed);
SOLVED: It had to do with OnCollisionEnter and OnCollisionExit. I was using a bool of grounded to know if the character was or not. Seems traspassing the edge of the collider called the function making grounded go false.
Then i have specified that if my character is not grounded he won’t be able to move. So that whas the problem.
So from now on i will use raycasting. Thanks to everyone that helped me!