I noticed a problem in Unity with translate. When use getAxis for translation. It moves smoothly but the object was a bit shaky while moving.
My code is very simple
void Update () {
float hori = Input.GetAxis("Horizontal");
float ver = Input.GetAxis("Vertical");
Vector2 transVector = new Vector2(hori, ver);
transform.Translate(transVector * 5 * Time.deltaTime);
}
Here is an example of my problem:
https://docs.google.com/file/d/0B7nGTxuhFgJQZlZ3WHprRWFmc1k/edit?usp=sharing
There is a cube and an animated skeleton. The effect might not be obvious with cube but is very obvious with the skeleton. Even it moves at smooth rate but it’s shaky and is unbearable.
I have tried this on several computers and they all have the same problem. I’ve never been able to get a completely smooth without shaking movement in unity. Can someone help? Thanks