Movement is jittery on Unity Remote,Movement jittery on a mobile device
While playing around with Unity remote, I came across a bug of sorts, where my Player object, when it would move, would be jittery on Unity Remote, whereas in the Game tab on my laptop, it was smooth. Is there any bug in Unity Remote? Or in my code?
Here is my code:
void FixedUpdate()
{
if (Input.touchCount > 0)
{
Touch touch = Input.GetTouch(0);
if (touch.position.x > Screen.width / 2)
{
velocity = rb.velocity;
velocity.x = transform.right.x * 10;
rb.velocity = velocity;
}
else if (touch.position.x < Screen.width / 2)
{
velocity = rb.velocity;
velocity.x = transform.right.x * -10;
rb.velocity = velocity;
}
}
}
You should ignore the performances of your application on your phone when Unity remote is active. The application just streams the content of the Game tab into your phone and capture some events from it. It's not your real game that is running on your phone.
Your answer
Follow this Question
Related Questions
For iOS development what image sizes do I need? 1 Answer
Export FBX Model Runtime 0 Answers
the player input is jittery seems like glitching 0 Answers
Camera Smoothing from pos A - pos B in Unity 2D 0 Answers
Mobile bloom kills performance 1 Answer