- Home /
Question by
wechat_os_Qy01RcRU-CDB6UyK_80sTftaE · Jul 09, 2021 at 03:28 PM ·
camerasmoothfollowing
The object following the camera is shaking
Hello everyone.I want an object (background) to follow the camera, but it's shaking. I want to know how to make it move smoothly.
I'm new to unity, so any help will be appreciated`(>﹏<)′
public Transform camera;
void Update()
{
transform.position = new Vector3(camera.position.x, 0, -1);
}
,
Comment
Your answer
