Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


worldCenterOfMass

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

Definition

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