- Home /
Question by
Vitos23 · Oct 06, 2017 at 03:14 PM ·
scripting problemphysicsrendering
Kinematic rigidbody shakes
I have a kinematic rigidbody object. And it shakes. FPS is stable (90fps).
if (initialSpeed <= maxSpeed)
{
initialSpeed += initialSpeed / 500 * Time.deltaTime;
turnSpeed += turnSpeed / 500 * Time.deltaTime;
}
transform.position += Vector3.right * initialSpeed * Time.deltaTime;
produce-0.gif
(9.9 kB)
Comment
Best Answer
Answer by FortisVenaliter · Oct 06, 2017 at 07:35 PM
If you disable the follow camera, does it still appear to be shaking? I'm willing to bet the car itself is not shaking, but rather the camera is because it's syncing sometimes before the car's movement and sometimes after. You need to put your camera code into the LateUpdate function to prevent that.
Your answer
![](https://koobas.hobune.stream/wayback/20220612140421im_/https://answers.unity.com/themes/thub/images/avi.jpg)