Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rotation via mouse when walking causes violent shaking #18

Open
Void-n-Null opened this issue Dec 12, 2020 · 4 comments
Open

Rotation via mouse when walking causes violent shaking #18

Void-n-Null opened this issue Dec 12, 2020 · 4 comments

Comments

@Void-n-Null
Copy link

I must say i absolutely love this project!
But unfortunately every time i get off the spaceship onto the surface of a planet, the character controller starts spasming violently every time i rotate the player via moving the mouse. If anyone has found an easy way to fix this issue id love to hear it or hopefully someone can at-least help me brainstorm why this problem happens.

Thanks!

@slippedhal0
Copy link

I must say i absolutely love this project!
But unfortunately every time i get off the spaceship onto the surface of a planet, the character controller starts spasming violently every time i rotate the player via moving the mouse. If anyone has found an easy way to fix this issue id love to hear it or hopefully someone can at-least help me brainstorm why this problem happens.

Thanks!

Try actually building the game, the editor has shaky Player Controller issues, but the build does not for me.

@MachoBrizzin
Copy link

@slippedhal0 Building the game doesn't seem to fix the issue (at least for me). I have noticed though, that the issue only seems to really happen when the player looks around along the X axis (looking up and down doesn't have the problem).

I imagine this is due the fact that, when the camera turns left or right, it's rotating the player object as a whole and not just the camera (whereas looking up and down only moves the camera). This means there's physics involved and something about that is being thrown off, resulting in the jerkiness seen here:

https://imgur.com/Ap0cZZh

@SebLague Could you give us a hand in fixing this issue? There has been at least one other issue posted here with a bunch of people reporting that they have the same problem. It's really messing things up for a lot of folks here.

Delofon added a commit to Delofon/Solar-System that referenced this issue Mar 31, 2021
Fixed shakiness described in issues SebLague#13 and SebLague#18 , Unity updated to 2020.3.1f1 (77a89f25062f)
@Delofon
Copy link

Delofon commented Mar 31, 2021

Commited to a PR that should hopefully fix this issue.

@foggyfields
Copy link

In the Player Controller script there is an Update and a Fixed Update. I moved the code being run in the Update to the Fixed Update. Stopped the jitter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants