ドキュメント

Unity Engine

Unity Engine

Force

Add a force to the Rigidbody2D, using its mass.
読み終わるまでの所要時間 1 分最終更新 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.