Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhysicsConstants

Constants used throughout the 2D physics system.
Read time 1 minuteLast updated 7 days ago

Definition

public readonly struct PhysicsConstants : IEquatable<PhysicsConstants>

Static Fields

Value

Description

MaxBounceIterationsThe maximum number of bounce passes a physics world can run in one simulation step.
MaxPolygonVerticesThe maximum number of supported vertices in PolygonGeometry.
MaxWorkersA constant defining the maximum number of worker threads supported by physics simulation. The current device may support fewer or more than this.
MaxWorldCapacityThe 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.
MaxWorldNameLengthThe maximum length of a PhysicsWorld name, beyond which PhysicsWorld.SetName truncates it.
MinMaximumLinearSpeedThe lowest maximum linear speed a physics world accepts, in meters per second. A world limited to this speed lets bodies move no more than a tenth of a millimeter each second, so it behaves as if nothing can move.