Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Character moves too fast diagonally

$
0
0
Hello all,

I'm having some trouble making the diagonal movement speed of my character the same as normal walking speed. When moving diagonally, it moves faster than normal. Any help on this would be appreciated. Thanks.

Below is the script for my character controller:

Code (CSharp):
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class FirstPersonController : MonoBehaviour
  6. {
  7.     public bool CanMove { get; private set; } = true;
  8.     private bool...
Character moves too fast diagonally

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>