Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Creating a scene with 2D Physics Core

Create and debug a scene that uses 2D physics.
Read time 2 minutesLast updated 14 days ago

Create and debug a scene that uses 2D physics with 2D Physics Core components.
Note
This documentation is about using Pose, Area, and Constraint components. To use 2D physics in the Unity Editor using components like the Rigidbody 2D component, refer to 2D physics instead.

Topic

Description

Physics Pose and Physics Area componentsUnderstand the Physics Pose and Physics Area components you use to build 2D physics objects.
Add physics to a GameObject with 2D Physics CoreTo add physics to a GameObject, add a Physics Pose component to make the GameObject part of the 2D physics simulation, and one or more Physics Area components, which give it a shape.
Add physics to a sprite with 2D Physics CoreTo add physics to a sprite GameObject and match the shape of the sprite for collisions, add a Physics Area Sprite component.
Visualize and edit 2D Physics Core scenesTo help you visualize 2D physics objects during development, Unity automatically draws the shapes you create with 2D Physics Core components in the Unity Editor.
Physics Pose component referenceExplore the properties you can use to configure a Physics Pose component in a 2D Physics Core object.
Physics Area Capsule component referenceExplore the properties you can use to configure a Physics Area Capsule component in a 2D Physics Core object.
Physics Area Circle component referenceExplore the properties you can use to configure a Physics Area Circle component in a 2D Physics Core object.
Physics Area Composite component referenceExplore the properties you can use to combine multiple shapes in a 2D Physics Core object.
Physics Area Contour component referenceExplore the properties you can use to configure a Physics Area Contour component in a 2D Physics Core object.
Physics Area Path component referenceExplore the properties you can use to configure a path in a 2D Physics Core object.
Physics Area Polygon component referenceExplore the properties you can use to configure a Physics Area Polygon component in a 2D Physics Core object.
Physics Area Primitive component referenceExplore the properties you can use to select a shape in a 2D Physics Core object.
Physics Area Segment component referenceExplore the properties you can use to configure a Physics Area Segment component in a 2D Physics Core object.
Physics Area Sprite component referenceExplore the properties you can use to configure a Physics Area Sprite component in a 2D Physics Core object.

Additional resources