🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Problem With Script

Started by
0 comments, last by Timothy Sharp 5 years, 5 months ago

Hello, I have a PlayerScript and I have movement down, but I cannot figure out how to make the camera turn. Here is the Mouse Function.


private void MouseMove()
    {
        Quaternion rotation = this.transform.rotation;
        rotation.eulerAngles += new Vector3(0.0f, Input.GetAxis("Horizontal") * this.mouseSensitivity * Time.deltaTime * Time.timeScale, 0.0f);
        this.transform.rotation = rotation;
    }

 

This topic is closed to new replies.

Advertisement