기술 자료

Unity Engine

Unity Engine

Force

Add a force to the Rigidbody2D, using its mass.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
Force = 0

Remarks

Apply the force in each FixedUpdate over a duration of time. This mode depends on the mass of rigidbody so more force must be applied to move higher-mass objects the same amount as lower-mass objects.
This mode is useful for setting up realistic physics where it takes more force to move heavier objects.