You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
difValue=transform.position-go_Target.transform.position; //카메라와 물체사이 거리 측정
difValue=new Vector3(Mathf.Abs(difValue.x),Mathf.Abs(difValue.y),Mathf.Abs(difValue.z)); //절대값으로 변환
}
void Update(){
this.transform.position=Vector3.Lerp(this.transform.position,go_Target.transform.position+difValue,speed); // Lerp는 움직임을 보관해줌 -> 중간에 계산해서 이동시킴 , 스피드가 낮아야 부드러운 느낌