- Home /
Question by
$$anonymous$$ · Oct 26, 2020 at 11:21 AM ·
cameracamera-movement
can any one help me with camera jitter problem ?,can any one help me with cam jitter problem ?,can any one help me fixing with camera jitter problem in my script
using System.Collections; using System.Collections.Generic; using UnityEngine;
public class cameramotor : MonoBehaviour { public Transform lookAt; public Vector3 startOffset; // Start is called before the first frame update void Start() { lookAt = GameObject.FindGameObjectWithTag("Player").transform; startOffset = transform.position - lookAt.position; }
// Update is called once per frame
void Update()
{
transform.position = lookAt.position + startOffset;
}
}
Comment