Documentation

Unity Engine

Unity Engine

worldCenterOfMass

Gets the center of mass of the rigidBody in global space.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public Vector2 worldCenterOfMass { get; }