Basic character controller not working properly
Hi, ive been trying to setup a simple mouse camera which i had all the code working fine, except when i move with "wasd" and move my mouse to turn the camera simultaneously the input freezes up and gets stuck repeatedly inputing whatever the last input was. Ive tested the simplest way to replicate the issue and it doesnt even need a camera for the issue to come up. If anyone would like to test and try to replicate the issue these are the steps its super fast and simple.
1) create new project(basic PC 3D project)
2) create a plane, and a cube
3) Add a basic character controller script to the cube(this time I used the official unity code to be sure its not an issue with code: https://docs.unity3d.com/ScriptReference/CharacterController.Move.html)
and thats it, thats actually all that was needed to create the issue for me. And to explain to anyone who may want to test it the issue is as follows: when you use wasd keys normally, everything works fine and the controls are responsive. However if you hold down one of the wasd keys while also moving your mouse(just wiggling the mouse should suffice) suddenly things will lock up and the cube will keep moving for a bit even after you let go of the respective wasd keys. In general if you hold a direction while simultaneously wiggling the mouse for a longer period of time, itll extend the amount of time the cube keeps moving after you let go of the direction. And this was done on Unity version 2020.1.16f1
If anyone has any idea what the issue may be its really appreciated.
Your answer
Follow this Question
Related Questions
Space Flight Simulator Turning Problems 0 Answers
Input.GetAxis going crazy when I click outside the game window 0 Answers
How can I use both mouse and keyboard to do the same thing? [SOLVED] 1 Answer
How to determine the maximum and minimum values of Input.GetAxis("Mouse X")? 1 Answer
Can you help me understand this script 0 Answers