Strange collision behavior (Bouncing off the walls)

Hello, I am playing with unity and trying to make simple 3d maze game. I came to the problem with colision, my “Hero” (Cube) bounces off the walls and spins around when I try to “run” into the wall (“Hero” should stop, not bounce). Video to explain: Unity Cube Bouncing - YouTube

My “Hero” controling script: Unity -

As I understand this has something to do with forces and rigidbody, but what I can’t figure out. My cube has riged body with properties:

Sorry for my bad english and Than You in advance.

That’s the rigidbody usual reaction to collisions. You could solve the rotation problem using rigidbody.freezeRotation = true; at Start(), and change the script to use forces or set rigidbody.velocity; to reduce bouncing, increase rigidbody.drag - this also limits the max speed. The changed script could be something like this:

public float moveForce = 30.0f;

void Start(){
    rigidbody.freezeRotation = true; // no more reactive rotation
    rigidbody.drag = 4.0f; // adjust drag to damp bouncing

void FixedUpdate(){ 
    float i_direction_h = Input.GetAxis("Horizontal");
    rigidbody.transform.Rotate(0, 60 * i_direction_h * Time.deltaTime, 0);
    float i_direction_v = Input.GetAxis("Vertical");
    rigidbody.AddForce(transform.forward * i_direction_v * moveForce);