- Home /
Character Controller.isGrounded flickers true/false while stationary, but not while moving/jumping
I am using a character controller for my player movement. If the player is grounded and does not want to jump, it will apply a force downwards to keep isGrounded true:
foo = -gravity * Time.deltaTime;
Simple enough, right?
In the editor, this works perfectly, no problems. However, when I build the final product to standalone, the isGrounded boolean flickers on and off rapidly. The quirk is this only happens while stationary. If I am moving or jumping I have no issues and it is perfectly consistent.
Turning on Vsync did fix the issue. However, it is a less than ideal method. I would very much appreciate if someone could offer a way to solve this while keeping Vsync off.
Your answer
Follow this Question
Related Questions
Time.deltaTime problem 0 Answers
Refreshrates and vsyncCount, what code should be applied? 0 Answers
Is SimpleMove() framerate-independent under the hood? 1 Answer
particle systems' physics heavily depends on framerate?? 1 Answer
Timing of WaitForEndOfFrame relative to vertical blank onset? 3 Answers