C# Time.deltaTime
Using Time.deltaTime Unity can tell us how long each frame took excute. 각 프레임이 실행되는 데 걸리는 시간을 알려줌 On Update (each frame) move 1 unit to the left 업데이트 시(각 프레임) 왼쪽으로 1단위 이동 ex) 느린 컴퓨터는 1초에 10프레임 빠른 컴퓨터는 1초에 100 프레임 (빠른 컴퓨터라도 초당 프레임 값이 다를수 있다) Slow Computer Fast Computer Frames per second 10 100 Duration of frame 0.1s 0.01s Distance per second 1*10*0.1 = 1 1*100*0.01 = 1 void Update() //프레임마다 호출된다...
2023.01.12