- Home /
Jittery jumping on cellphone but not on pc.
So I have an issue with my jumping I believe. I seem to have a bit of a jittery jump on my cellphone when i try to jump on there but on PC that jitteryness doesen't exist. I do not know what is causing it. Here's the code for my jumping:
void FixedUpdate()
{
if (controller.isGrounded)
{
verticalVelocity = 0;
animator.SetBool("is_in_air", false);
}
else
verticalVelocity -= gravity * Time.fixedDeltaTime;
}
void onButtonJump()
{
if (controller.isGrounded)
{
// Player jumps (height depends on my jumpForce value)
verticalVelocity = jumpForce;
// Play animation and sound here
jump.Play();
animator.SetBool("is_in_air", true);
}
}
if anyone might have some ideas as to what could be causing the jitteryness on the cellphone device, please do throw a comment my way.
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
have 3rd person make a side jump -1 Answers
How to make a ball jump? 2 Answers
Jump when you press on-screen button 1 Answer