---
title: UnityEngine.PhysicsCore2DModule
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/modules/unityengine-physicscore2dmodule
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/modules/unityengine-physicscore2dmodule.md
last_updated: 2026-11-30
generated_at: 2026-12-01T00:11:24.616Z
locale: en-us
---

# UnityEngine.PhysicsCore2DModule

> The PhysicsCore2D module contains all the core 2D physics features.

## Definition

* **Type:** Module

## Classes

| Class                                                                                                   | Description                                                                                                                           |
| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| [PhysicsCoreSettings2D](/engine/7000.0/script-reference/unity/u2d/physics/physicscoresettings2d.md)     | PhysicsCore Settings Asset. This contains all the global physics options along with the default values for the following definitions: |
| [PhysicsHandleExtensions](/engine/7000.0/script-reference/unity/u2d/physics/physicshandleextensions.md) | Extensions that let a physics handle be written through when it is reached by something other than a plain variable.                  |
| [PhysicsResultExtensions](/engine/7000.0/script-reference/unity/u2d/physics/physicsresultextensions.md) | Fluent filtering extensions for the physics result arrays returned by queries, events, and other physics operations.                  |

## Structs

| Struct                                                                                                                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [CapsuleGeometry](/engine/7000.0/script-reference/unity/u2d/physics/capsulegeometry.md)                               | The geometry of a closed capsule which can be viewed as two semi-circles connected by a rectangle. See [PhysicsBody.CreateShape](/engine/7000.0/script-reference/unity/u2d/physics/physicsbody/createshape.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [ChainGeometry](/engine/7000.0/script-reference/unity/u2d/physics/chaingeometry.md)                                   | The geometry of a chain of ChainSegment.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [ChainSegmentGeometry](/engine/7000.0/script-reference/unity/u2d/physics/chainsegmentgeometry.md)                     | The geometry of a chain line segment with one-sided collision which only collides on the "right" side. Several of these are generated for a chain, connected as ghost1 -> point1 -> point2 -> ghost2.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [CircleGeometry](/engine/7000.0/script-reference/unity/u2d/physics/circlegeometry.md)                                 | The geometry of a closed circle. See [PhysicsBody.CreateShape](/engine/7000.0/script-reference/unity/u2d/physics/physicsbody/createshape.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [PhysicsAABB](/engine/7000.0/script-reference/unity/u2d/physics/physicsaabb.md)                                       | Represents a 2D axis-aligned bounding box.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [PhysicsBody](/engine/7000.0/script-reference/unity/u2d/physics/physicsbody.md)                                       | A body is contained within a world and has 3 degrees-of-freedom, two for position and one for rotation. A body can have forces, torques and impulses applied to it. A body has three distinct types:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [PhysicsBodyDefinition](/engine/7000.0/script-reference/unity/u2d/physics/physicsbodydefinition.md)                   | A [PhysicsBody](/engine/7000.0/script-reference/unity/u2d/physics/physicsbody.md) definition used to specify important initial properties.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [PhysicsCallbacks](/engine/7000.0/script-reference/unity/u2d/physics/physicscallbacks.md)                             | All callback interfaces and targets.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [PhysicsChain](/engine/7000.0/script-reference/unity/u2d/physics/physicschain.md)                                     | A dedicated shape that produces a chain of shapes connected together to produce a continuous surface. Chain shapes provide a smooth, continuous surface that will not produce "ghost" collisions. A [PhysicsChain](/engine/7000.0/script-reference/unity/u2d/physics/physicschain.md) is automatically destroyed when the body it is in is destroyed. A [PhysicsChain](/engine/7000.0/script-reference/unity/u2d/physics/physicschain.md)  cannot exist unattached from a body.                                                                                                                                                                                                                                                                                             |
| [PhysicsChainDefinition](/engine/7000.0/script-reference/unity/u2d/physics/physicschaindefinition.md)                 | A [PhysicsChain](/engine/7000.0/script-reference/unity/u2d/physics/physicschain.md) definition used to specify the chain of vertices that will produce multiple [ChainSegmentGeometry](/engine/7000.0/script-reference/unity/u2d/physics/chainsegmentgeometry.md) shape types. Additionally, non-geometric properties can be specified here.                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [PhysicsComposer](/engine/7000.0/script-reference/unity/u2d/physics/physicscomposer.md)                               | Provides the ability to compose geometry using specific operations on layers in a specific order.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [PhysicsConstants](/engine/7000.0/script-reference/unity/u2d/physics/physicsconstants.md)                             | Constants used throughout the 2D physics system.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [PhysicsDestructor](/engine/7000.0/script-reference/unity/u2d/physics/physicsdestructor.md)                           | Provides the ability to destruct (fragment and Slice) geometry.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [PhysicsDistanceJoint](/engine/7000.0/script-reference/unity/u2d/physics/physicsdistancejoint.md)                     | Connects an anchor point on body A with an anchor point on body B via a line segment of a specified distance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [PhysicsDistanceJointDefinition](/engine/7000.0/script-reference/unity/u2d/physics/physicsdistancejointdefinition.md) | A joint definition used to specify properties when creating a [PhysicsDistanceJoint](/engine/7000.0/script-reference/unity/u2d/physics/physicsdistancejoint.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [PhysicsEvents](/engine/7000.0/script-reference/unity/u2d/physics/physicsevents.md)                                   | Various events that can be retrieved during and after the simulation has completed. See [PhysicsWorld.Simulate](/engine/7000.0/script-reference/unity/u2d/physics/physicsworld/simulate.md) and [PhysicsWorld.Simulate](/engine/7000.0/script-reference/unity/u2d/physics/physicsworld/simulate.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [PhysicsFixedJoint](/engine/7000.0/script-reference/unity/u2d/physics/physicsfixedjoint.md)                           | A joint to constrain a pair of bodies together rigidly. This constraint provides springs to mimic soft-body simulation. The approximate solver cannot always hold many bodies together completely rigidly.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [PhysicsFixedJointDefinition](/engine/7000.0/script-reference/unity/u2d/physics/physicsfixedjointdefinition.md)       | A joint definition used to specify properties when creating a [PhysicsFixedJoint](/engine/7000.0/script-reference/unity/u2d/physics/physicsfixedjoint.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [PhysicsHandle](/engine/7000.0/script-reference/unity/u2d/physics/physicshandle.md)                                   | An abstract handle that can be used for custom purposes such as handling miscellaneous physics object types abstractly. You can create a handle with [PhysicsHandle.Create](/engine/7000.0/script-reference/unity/u2d/physics/physicshandle/create.md) or [PhysicsHandle.CreateBatch](/engine/7000.0/script-reference/unity/u2d/physics/physicshandle/createbatch.md). You can destroy a handle with [PhysicsHandle.Destroy](/engine/7000.0/script-reference/unity/u2d/physics/physicshandle/destroy.md) or [PhysicsHandle.DestroyBatch](/engine/7000.0/script-reference/unity/u2d/physics/physicshandle/destroybatch.md).                                                                                                                                                  |
| [PhysicsHingeJoint](/engine/7000.0/script-reference/unity/u2d/physics/physicshingejoint.md)                           | A joint where an anchor point on body B is fixed to an anchor point on body A. This joint allows relative rotation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [PhysicsHingeJointDefinition](/engine/7000.0/script-reference/unity/u2d/physics/physicshingejointdefinition.md)       | A joint definition used to specify properties when creating a [PhysicsHingeJoint](/engine/7000.0/script-reference/unity/u2d/physics/physicshingejoint.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [PhysicsIgnoreJoint](/engine/7000.0/script-reference/unity/u2d/physics/physicsignorejoint.md)                         | A joint used to ignore collision between two specific bodies. As a side effect of being a joint, it also keeps the two bodies in the same simulation island meaning they'll wake/sleep at the same time and be solved together on the same thread.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [PhysicsIgnoreJointDefinition](/engine/7000.0/script-reference/unity/u2d/physics/physicsignorejointdefinition.md)     | A joint definition used to specify properties when creating a [PhysicsIgnoreJoint](/engine/7000.0/script-reference/unity/u2d/physics/physicsignorejoint.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [PhysicsJoint](/engine/7000.0/script-reference/unity/u2d/physics/physicsjoint.md)                                     | A joint is used to constrain bodies to the world or to each other in various ways. A joint is automatically destroyed when either body it is attached to is destroyed. A joint cannot exist unattached from a body.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [PhysicsLayers](/engine/7000.0/script-reference/unity/u2d/physics/physicslayers.md)                                   | This provides a common method to retrieving layer information. If a [PhysicsCoreSettings2D](/engine/7000.0/script-reference/unity/u2d/physics/physicscoresettings2d.md) asset is assigned then the full layers ([PhysicsCoreSettings2D.physicsLayerNames](/engine/7000.0/script-reference/unity/u2d/physics/physicscoresettings2d/physicslayernames.md)) will be used if [PhysicsCoreSettings2D.usePhysicsLayers](/engine/7000.0/script-reference/unity/u2d/physics/physicscoresettings2d/usephysicslayers.md) is also active. If no [PhysicsCoreSettings2D](/engine/7000.0/script-reference/unity/u2d/physics/physicscoresettings2d.md) asset is assigned then the global layers (See [LayerMask](/engine/7000.0/script-reference/unityengine/layermask.md)) will be used. |
| [PhysicsMask](/engine/7000.0/script-reference/unity/u2d/physics/physicsmask.md)                                       | A 64-bit mask, effectively 64 flags. The default enumerator will iterate all the bits that are set (1).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [PhysicsMath](/engine/7000.0/script-reference/unity/u2d/physics/physicsmath.md)                                       | A set of mathematical operations that are useful for physics. These operations do not form a fully comprehensive mathematics library, they simply provide operations that are usually required when interacting with physics.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [PhysicsPlane](/engine/7000.0/script-reference/unity/u2d/physics/physicsplane.md)                                     | Represents a 2D plane.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [PhysicsQuery](/engine/7000.0/script-reference/unity/u2d/physics/physicsquery.md)                                     | Various physics queries.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [PhysicsRelativeJoint](/engine/7000.0/script-reference/unity/u2d/physics/physicsrelativejoint.md)                     | A joint constraint used to control the relative movement two bodies while still being responsive to collisions. A spring controls the position and rotation and velocity control allows for simulated friction such as seen in top-down games. A typical usage is to control the movement of a dynamic body with respect to the ground.                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [PhysicsRelativeJointDefinition](/engine/7000.0/script-reference/unity/u2d/physics/physicsrelativejointdefinition.md) | A joint definition used to specify properties when creating a [PhysicsRelativeJoint](/engine/7000.0/script-reference/unity/u2d/physics/physicsrelativejoint.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [PhysicsResultEnumerable\<T, TFilter>](/engine/7000.0/script-reference/unity/u2d/physics/physicsresultenumerable2.md) | A lazy, allocation-free view over a physics result array that yields only the elements a filter keeps.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [PhysicsRotate](/engine/7000.0/script-reference/unity/u2d/physics/physicsrotate.md)                                   | Represents a 2D rotation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [PhysicsShape](/engine/7000.0/script-reference/unity/u2d/physics/physicsshape.md)                                     | A shape is attached to a body and defines an area to which two distinct types of behaviour are handled:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [PhysicsShapeDefinition](/engine/7000.0/script-reference/unity/u2d/physics/physicsshapedefinition.md)                 | A [PhysicsShape](/engine/7000.0/script-reference/unity/u2d/physics/physicsshape.md) definition used to specify important initial properties.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [PhysicsSliderJoint](/engine/7000.0/script-reference/unity/u2d/physics/physicssliderjoint.md)                         | A joint that requires defining a line of motion defined by the local anchor A. Body B may slide along the axis defined by the local anchor A. Body B cannot rotate relative to body A. The joint translation is zero when the local anchor origins coincide in world space. The joint uses local anchors so that the initial configuration can violate the constraint slightly.                                                                                                                                                                                                                                                                                                                                                                                             |
| [PhysicsSliderJointDefinition](/engine/7000.0/script-reference/unity/u2d/physics/physicssliderjointdefinition.md)     | A joint definition used to specify properties when creating a [PhysicsSliderJoint](/engine/7000.0/script-reference/unity/u2d/physics/physicssliderjoint.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [PhysicsSpace](/engine/7000.0/script-reference/unity/u2d/physics/physicsspace.md)                                     | Provides the ability to store and query information in a spatial database.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [PhysicsTransform](/engine/7000.0/script-reference/unity/u2d/physics/physicstransform.md)                             | Represents a 2D transformation combining a translation and a [PhysicsRotate](/engine/7000.0/script-reference/unity/u2d/physics/physicsrotate.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [PhysicsUserData](/engine/7000.0/script-reference/unity/u2d/physics/physicsuserdata.md)                               | Custom user data. The physics system doesn't use this data, it is entirely for custom use.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [PhysicsWheelJoint](/engine/7000.0/script-reference/unity/u2d/physics/physicswheeljoint.md)                           | A joint that requires defining a line of motion using an axis and an anchor point. The joint translation is zero when the local anchors coincide in world space. The joint uses local anchors so that the initial configuration can violate the constraint slightly.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [PhysicsWheelJointDefinition](/engine/7000.0/script-reference/unity/u2d/physics/physicswheeljointdefinition.md)       | A joint definition used to specify properties when creating a [PhysicsWheelJoint](/engine/7000.0/script-reference/unity/u2d/physics/physicswheeljoint.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [PhysicsWorld](/engine/7000.0/script-reference/unity/u2d/physics/physicsworld.md)                                     | A world is a container for all other physics objects such as [PhysicsBody](/engine/7000.0/script-reference/unity/u2d/physics/physicsbody.md), [PhysicsShape](/engine/7000.0/script-reference/unity/u2d/physics/physicsshape.md), [PhysicsJoint](/engine/7000.0/script-reference/unity/u2d/physics/physicsjoint.md) etc. A world can be simulated in isolation from all other worlds. The number of worlds allocated up-front is defined by [PhysicsCoreSettings2D.initialWorldCapacity](/engine/7000.0/script-reference/unity/u2d/physics/physicscoresettings2d/initialworldcapacity.md), after which more are allocated on demand as required. A world is completely isolated from all other worlds.                                                                       |
| [PhysicsWorldDefinition](/engine/7000.0/script-reference/unity/u2d/physics/physicsworlddefinition.md)                 | A [PhysicsWorld](/engine/7000.0/script-reference/unity/u2d/physics/physicsworld.md) definition used to specify important initial properties.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [PolygonGeometry](/engine/7000.0/script-reference/unity/u2d/physics/polygongeometry.md)                               | The geometry of a closed convex polygon.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [SegmentGeometry](/engine/7000.0/script-reference/unity/u2d/physics/segmentgeometry.md)                               | The geometry of a line segment. See [PhysicsBody.CreateShape](/engine/7000.0/script-reference/unity/u2d/physics/physicsbody/createshape.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |

## Interfaces

| Interface                                                                                              | Description                                                                    |
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
| [IPhysicsResultFilter\<T>](/engine/7000.0/script-reference/unity/u2d/physics/iphysicsresultfilter1.md) | A filter applied to each element of a physics result array during enumeration. |
