Is't impossible to move an object without jittering

Hi,

I try to move an object but it seems impossible to have a jitter-free movement.

I already published the game :
https://play.google.com/store/apps/details?id=com.MDevApp.JumpingBall
In this version, i used this code ( Rigidbody2D + is Kinematic On)

public Vector2 speed = new Vector2(0,-5);
public float range =1.7f;
 
void Start () {
 
        GetComponent<Rigidbody2D> ().velocity = speed;
        transform.position = new Vector3 (transform.position.x - range * Random.value, transform.position.y,transform.position.z);
      }

I also tried :

  • Translate ( without Rigidbody2D)
  • Add force ( with Rigidbody2D + is Kinematic Off)
  • Character controller

Each time i tried with Update(),FixedUpdate() and switching between Time.deltaTime, Time.FixedeltaTime and Time.smoothDeltaTime, Turning VSync On/Off, changing FixedTimestep to differents values (0.0166 for example),Interpolate/Extrapolate.
I really tried everything i found on forums.

I tested the game on many devices and for some of them the movement looked smooth but for others the jittering was obvious.

So i really want to know, is’t impossible to move an object without jittering or am i missing something.

Thanks.

you shuild use time.delta time to maka a smoth transision
float MovementSpeed = 2;

transform.position += transform.forward * Time.deltaTime * MovementSpeed;

Time.deltaTime is wrong for FixedUpdate, should be Time.fixedDeltaTime there.
The rigidBody definitely needs set to kinematic if you’re messing with position directly like this. One of the myriad problems doing motion this way is the physics engine must then extrapolate the positions to obtain a velocity; if it doesn’t do this or fails somehow it won’t be able to reconstruct interpolated positions for the intermediate rendered frames properly. Another is that you’re bypassing intermediate space for collision, including any continuous collision detection it may provide. You’re not supposed to teleport objects in a physics simulation. You should just set a velocity on the rigidBody and let the physics engine manage the position like it was designed to do.