Unity

[Unity][팁] 유용한 Math함수

usingsystem 2022. 10. 5. 17:58
728x90

Mathf.Lerp(wait_run_ratio, 1, 10.0f * Time.deltaTime);//서서히 변하게

 

 Math.Clamp(_speed * Time.deltaTime, 0, dir.magnitude);//clamp는 시작 값 끝값에 대한 거리값 덮어써줌

728x90