# PhysicsConstants

> Constants used throughout the 2D physics system.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule
* **Implements:** [IEquatable\<PhysicsConstants>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public readonly struct PhysicsConstants : IEquatable<PhysicsConstants>
```

## Static Fields

| Value                                                                                                          | Description                                                                                                                                                                                                                                                      |
| -------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [MaxPolygonVertices](/engine/6000.7/script-reference/unity/u2d/physics/physicsconstants/maxpolygonvertices.md) | The maximum number of supported vertices in [PolygonGeometry](/engine/6000.7/script-reference/unity/u2d/physics/polygongeometry.md).                                                                                                                             |
| [MaxWorkers](/engine/6000.7/script-reference/unity/u2d/physics/physicsconstants/maxworkers.md)                 | A constant defining the maximum number of worker threads supported by physics simulation. The current device may support fewer or more than this.                                                                                                                |
| [MaxWorldCapacity](/engine/6000.7/script-reference/unity/u2d/physics/physicsconstants/maxworldcapacity.md)     | The maximum number of [PhysicsWorld](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld.md) that can exist at one time. The world array grows on demand up to this ceiling, which is the limit of the 16-bit world index carried in physics handles. |
| [MaxWorldNameLength](/engine/6000.7/script-reference/unity/u2d/physics/physicsconstants/maxworldnamelength.md) | The maximum length of a [PhysicsWorld](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld.md) name, beyond which [PhysicsWorld.SetName](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/setname.md) truncates it.                     |
