Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Player moves faster in two directions?

I followed Brackey's FPS player tutorial, and the player moves faster if I move both forward and right. Any way to fix this?

Comments

  • you should use Time.deltaTime in coding if you use transform or Rigidbody

  • I'm using a character controller. I followed Brackey's tutorial for FPS movement.

  • i know , do you any script you add it with character controller?

  • EJNEJN Member

    You probably need to normalize the movement vector3. This will scale the vector so the magnitude results in 1. After that you can multiply the vector by a speed.

  • @EJN Yeah I did that, it just made the player keep moving for longer once the button is unpressed. Using GetAxisRaw with this fixes that, but means the player stops on a dime, which is a bit awkward to see.

  • EJNEJN Member

    Thats weird.

    Can you show me the code?

Sign In or Register to comment.