ドキュメント

Unity Engine

Unity Engine

ApplyForceToCenter(Vector2, bool)

Apply a force to the center of mass. PhysicsBody.ApplyForceToCenter.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public void ApplyForceToCenter(Vector2 force, bool wake = true)

Parameters

force

The world force vector, usually in newtons (N).

wake

Should the body be woken up.