string serialR = stream.ReadLine(); posFromSerial = float.Parse (serialR); float velo = Mathf.Round (rigidbody.position.x/factor); Vector3 mouvment = new Vector3(posFromSerial/factor, 0, mouveVertical); rigidbody.MovePosition (mouvment);