if (Input.GetKeyDown(KeyCode.A))
boxRigidbody.AddForce(transform.right * movePower, ForceMode.Impulse);
else if (Input.GetKey(KeyCode.S))
boxRigidbody.AddForce(transform.right * movePower, ForceMode.Force);
else if (Input.GetKeyDown(KeyCode.D))
boxRigidbody.AddForce(transform.right * movePower, ForceMode.VelocityChange);
else if (Input.GetKey(KeyCode.F))
boxRigidbody.AddForce(transform.right * movePower, ForceMode.Acceleration);
boxRigidbody.AddForce(transform.right * movePower, ForceMode.Force);
boxRigidbody.AddForce(transform.right * movePower, ForceMode.Impulse);
일정 시간동안 가해졌던 힘의 합 = 충격량
Impulse는 1 second동안 가해진 힘의 합
FixedUpdate 1번에 0.02초, 1초에 50번 업데이트
(ProjectSetting - time에서 확인 가능)
1초동안 힘을 50번 가함, force* 50이 impulse와 같아짐
Force / Fixed Timestep = Impulse
boxRigidbody.AddForce(transform.right * movePower, ForceMode.VelocityChange);
boxRigidbody.AddForce(transform.right * movePower, ForceMode.Acceleration);
Acceleration / Fixed Timestep = VelocityChange