using UnityEngine; public class IVTraceSmooth : MonoBehaviour { [SerializeField] protected Transform trfTarget; protected Transform trfSelf; [SerializeField] protected float fSmoothSpeed = 0.125f; protected void Start() { trfSelf = transform; } protected void LateUpdate() { trfSelf.position = Vector3.Lerp(trfSelf.position, trfTarget.position, fSmoothSpeed); } }