Cube is shaking.
http://i.imgur.com/wjlIO88.gif
anyone help?
When I press up or down arrows, cube is shaking.
No one is going to be able to help without 1) an explanation of what you're trying to do (and how you're trying to do it) and 2) the relevant code (pasted with formatting directly into the forum).
I want to the cube move only between two walls but when I press up or down keys, cube is shaking.
Codes:
if (Input.Get$$anonymous$$ey($$anonymous$$eyCode.LeftArrow)) { transform.Translate (-Vector3.right*5f*Time.deltaTime); } if (Input.Get$$anonymous$$ey($$anonymous$$eyCode.RightArrow)) { transform.Translate (Vector3.right*5f*Time.deltaTime); } if (Input.Get$$anonymous$$ey($$anonymous$$eyCode.UpArrow)) { transform.Translate (-Vector3.back*5f*Time.deltaTime); } if (Input.Get$$anonymous$$ey($$anonymous$$eyCode.DownArrow)) { transform.Translate (Vector3.back*5f*Time.deltaTime); }