Jump to content
  • Advertisement
Timothy Sharp

Problem With Script

Recommended Posts

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;


Edited by Timothy Sharp

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!