- Home /
Rigidbody 2D Jittery
Hello
My Rigidbody2D is really jerky for some reason. When I turn on "interpolate", the physics aren't accurate and very annoying. I'm using Unity 2020.1.0a.16.1913 I reset my Physics2D settings so all the settings are default. What is going on? Here are my settings
In the FixedUpdate, do the movement.
transform.position += new Vector3(x * Time.deltaTime, 0);
Answer by suIly · Dec 01, 2020 at 02:12 PM
As usual, I fixed it myself. I had to put both the movement script and the camera follow/lerp script in the FixedUpdate, instead of the movement script in the Update and the Camera Follow in the Late Update
Answer by wolfenswan · Nov 30, 2020 at 07:37 PM
Does Vector2.MoveTowards help? E.g.:
Vector2 targetPos = transform.position + (velocity * Time.deltaTime);
transform.position = Vector2.MoveTowards(transform.position, targetPos, 1f);
Its not the movement script that's making the rigidbody jittery. I removed all the scripts and tried adding forces to the rigidbody, and it was still jerky.
Your answer
![](https://koobas.hobune.stream/wayback/20220613020834im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Can't Find Optimization Problem in My Scripts 4 Answers
iOS Lag From Updating Score 0 Answers
micro Jittering, stuttering... bug of unity? 2 Answers
Sprite movement is jittery/laggy 1 Answer
Steam Vr Hands lagg behind when i move 2 Answers