Как сделать так чтобы мой персонаж поворачивался за джойстиком? Я делаю TDS Вот мой код если что. using UnityEngine; using CnControls; using System.Collections; public class characterControl : MonoBehaviour { Vector3 position; void Start() { } void FixedUpdate () { position = new Vector3(CnInputManager.GetAxis("Horizontal"), CnInputManager.GetAxis("Vertical"), 0f); transform.position += position*Time.deltaTime*5; if (position.x < 0) { transform.rotation = Quaternion.Euler(0, 180, 0); // это старые развороты } if (position.x > 0) { transform.rotation = Quaternion.Euler(0, 0, 0); } } }