My Player gets stuck in collision

Alright i know this question gets asked alot.
But i cant really find a fix.
Im making this game where a cube(Player) Have to go through obstacles, but everytime my player hits a wall or something it gets stuck.

I know its something with the rigidbody, and it has to be another code, i just dont know how.////////////////////////////////

//
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Player : MonoBehaviour {
public float moveSpeed;
void Start () {
moveSpeed = 3f;
}

void FixedUpdate () {
	transform.Translate (moveSpeed*Input.GetAxis("Horizontal")*Time.deltaTime,0f,moveSpeed*Input.GetAxis("Vertical")*Time.deltaTime);

}

}
//

I think you need to attach a CharacterController component to the player gameobject and use CharacterController.Move instead of transform.Translate (exemple script here)

I tried with the characterController, and it works with the collision and stuff. But its really glitchy, my camara following script glitches, my player glitches, its really weird