ドキュメント

Unity Engine

Unity Engine

worldCenterOfMass

Get the center of mass position of the body in world space. This changes as the body moves i.e. as the PhysicsBody.transform is changed.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public Vector2 worldCenterOfMass { get; }