# CenterOfMass

> Override the center of mass. A rotational inertia that is not itself overridden is shifted to the overridden center.

## Definition

* **Type:** Field
* **Namespace:** [Unity.U2D.Physics](/engine/7000.0/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
CenterOfMass = 4
```
