Documentation

Unity Engine


User Manual

Script Reference

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 _transform is changed.
Read time 1 minuteLast updated 13 days ago

Definition

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