- Home /
Objects on the stage twitch while moving
Hello everybody!
I am looking for advice on optimizing the rendering of objects. Objects on the stage twitch while moving. The car is driving, static obstacles are being generated along the road. The camera follows the typewriter, without reference to it, at its own speed.
In Update, obstacles do not shake, and the machine shakes. In FixedUpdade, the machine does not shake, and obstacles shake.
How to make sure that nothing shakes? Video: https://drive.google.com/open?id=1NQHI_zuA5yh3hUKT0aJoflthmiauGErE
void FixedUpdate()
{
transform.position = new Vector3(transform.position.x, transform.position.y, transform.position.z + camSpeed);
}
void Update()
{
transform.position = new Vector3(transform.position.x, transform.position.y, transform.position.z + camSpeed);
}
Your answer
Follow this Question
Related Questions
Need for speed like physics using Edy's vehicle physics? 1 Answer
OnCollisionEnter doesn't work: changing wheelcollider's sideway friction stiffness 0 Answers
Mobile optimised simple car physics? Any recommendation? 0 Answers
Cant seem to make this basic 3D car turn properly 0 Answers
Animation in a car without affecting the physics? help! 1 Answer