Hi!
I want to make simple game,with moving in the X and Z axis with WSAD keys.
I want to move smoothly the object by 1 unit per 1 Key hit.
I know the methods like Lerp,MoveTowards and Translate but they don’t work for me.
What should I do ?
something like
if (Input.GetKey(KeyCode.D))
{
transform.Translate(Vector3.right * moveSpeed * Time.deltaTime, Space.World);
}
should work