Forcemode

리지드바디 (Rigidbody) addforce, Addtorque에서 공통적으로 사용

연속적인 힘

자동차의 엑셀을 밟아서 가속을 넣듯이 가속을 추가해주는 방식입니다. 이미 굴러가고 있는 중에 사용하기 적합합니다.

  • 무게를 적용하려면 ForceMode.Force
  • 무게를 무시하려면 ForceMode.Acceleration
  • Force Add a continuous force to the rigidbody, using its mass.
  • Acceleration Add a continuous acceleration to the rigidbody, ignoring its mass.

순간적인 힘

마치 뒤에서 누가 밀듯이 순간적으로 속도가 붙여주는 방식입니다. 정지 상태서 이동을 시작하려 할 때 적합합니다.

  • 무게를 적용하려면 ForceMode.Impulse
  • 무게를 무시하려면 ForceMode.VelocityChange
  • Impulse Add an instant force impulse to the rigidbody, using its mass.
  • VelocityChange Add an instant velocity change to the rigidbody, ignoring its mass.

역링크