PhysicsConstants
Constants used throughout the 2D physics system.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Struct
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
- Implements: IEquatable<PhysicsConstants>
public readonly struct PhysicsConstants : IEquatable<PhysicsConstants>
Static Fields
Value | Description |
|---|---|
| MaxPolygonVertices | The maximum number of supported vertices in PolygonGeometry. |
| MaxWorkers | A constant defining the maximum number of worker threads supported by physics simulation. The current device may support fewer or more than this. |
| MaxWorldCapacity | The maximum number of PhysicsWorld 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 | The maximum length of a PhysicsWorld name, beyond which PhysicsWorld.SetName truncates it. |