unity stop object from rotating
Code Example - unity stop object from rotating
rigidbody.freezeRotation = true;
rigidbody.freezeRotation = true;