velocity function for the movement is not working.

Hi. I am new to Unity. I am adding movement to the object on the press of arrow keys. but somehow it is not working.

I am using version 2017.1.0f.

void Start()
{
rgbd = GetComponent();
}

void Update()
{
moveHor = Input.GetAxis(“Horizontal”);
moveVer = Input.GetAxis(“Vertical”);
float moveposX = moveHor * Time.deltaTime * 20.0f;
float moveposZ = moveVer * Time.deltaTime * 20.0f;
rgbd.velocity = new Vector3(moveposX, 0f, moveposZ);
}
Please guide me. Thanks

Solved this. I haven’t uncheck the ‘Apply Root Motion’ in the animator properties. Can somebody guide what is meant by this option though. I am new to unity