Gist · 76 / URL: https://code.tamytro.org/_admin/gists/76
Public Gist
Expires: Never
blaked - created 10 years ago
added file: gistfile1.txt
gistfile1.txt
1
2
3
4
5
6
7
8
		
		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);