diff --git a/Assets/Scripts/PlayerController.cs b/Assets/Scripts/PlayerController.cs index c5771fa..e6cd211 100644 --- a/Assets/Scripts/PlayerController.cs +++ b/Assets/Scripts/PlayerController.cs @@ -31,7 +31,9 @@ public class PlayerController : MonoBehaviour moveDirection = (transform.forward * Input.GetAxisRaw("Vertical")) + (transform.right * Input.GetAxisRaw("Horizontal")); //Player rotation - transform.Rotate(0, Input.GetAxis("Horizontal") * Time.deltaTime * rotationSpeed, 0); + //transform.Rotate(0, Input.GetAxis("Horizontal") * Time.deltaTime * rotationSpeed, 0); + Vector3 newPosition = new Vector3(Input.GetAxis("Horizontal"), 0.0f, Input.GetAxis("Vertical")); + transform.LookAt(newPosition + transform.position); if (extraJump == true) {