Character Spinning Uncontrollably

Hi all,

I’ve cloned the project and followed the setup outlined on GitHub and the project builds fine and I believe I have everything working without any hiccups, but when I go into preview or just regular play in a build, my character just spins left constantly and looks straight up.

I can fight it by moving the mouse the other way, but it’s not playable enough to get a feel for how the project actually plays or to see anything in action.

My machine is running Windows 8.1. I don’t have any other input devices other than my 1 steelseries mouse and a razer keyboard, but I’m still stuck spinning if I unplug it. I’d love some help if anyone has any ideas on what could cause this.

Thanks!

I had the same problem, got it fixed by

  1. Reimporting all Prefabs and Models
  2. Updating Registry in Project Tools
  3. Forcing all Asset Bundles
  4. Building a new player

For starting the project I use Unity as the Server.
Hope that helps

3 Likes

Hmm, I’ve never used the asset bundler before. How do I do step 3?

They have added a Button in the Project Tools of the FPS-Sample;
As soon as you open the Project Tools via FPS Sample > Windows > Project Tools;
You find it under Bundles;
There you can just build the levels, assets or force everything via the All button.

Cheers;

I followed these steps but my character is still spinning in both the preview and the build. The build complains about a missing .cfg file and the Unity console has a number of errors upon building through the Project Tools > Build game about the burst compiler. In my experience the error messsges about the shader keywords is pretty normal for the HDRP and can be ignored though.

For anyone else who has this issue, I had to comment out the lines in InputSystem.cs assigning deltaMousePos with data from Game.Input.GetAxisRaw(“RightStickX”) and Game.Input.GetAxisRaw(“RightStickY”). I don’t have any devices plugged into my computer that would register values there, but maybe I have some virtual device that’s causing it? Either way, it looks like the issue is extremely situational.

Mine ended up being caused by a gamepad plugged into the back of my PC. Unplugged, and it stopped spinning.

4 Likes

Yeah, i removed my 3D Spacemouse.
Now it works

I had to increase the Angular Drag on my player model, which made the character not spin when I stopped moving. Mine was near zero when I had the issue.

Credit to Character Spin Issue - Questions & Answers - Unity Discussions