09.06.2017, 16:16
Quote:
|
Look into Input.GetAxis() and Update() in MonoBehaviour.
You may have to use Код:
transform.position = transform.position + (((transform.forward * vertical) + (transform.right * horizontal)).normalized * speed * Time.deltaTime); For camera rotation look into Quaternion.AngleAxis(), polar and elevation attributes and Quaternion multiplication. |


