Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


2D physics with 2D Physics Core

Create and control a 2D physics scene using 2D Physics Core.
Read time 1 minuteLast updated 13 days ago

Create and control a 2D physics scene using 2D Physics Core, which implements the
U2D.Physics
API.
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

Introduction to 2D Physics CoreLearn about how 2D Physics Core components work and how they differ from Rigidbody 2D and Collider 2D components.
Get started with 2D Physics CoreLearn about 2D Physics Core and how to create a 2D physics scene.
Creating a scene with 2D Physics CoreCreate and debug a scene that uses 2D physics.
Connecting 2D Physics Core objectsConnect 2D Physics Core objects together with Physics Constraint components, and explore the properties of each constraint type.
Configure 2D Physics Core scenesShare and pin the properties of 2D Physics Core components, and configure global properties.
Creating multiple simulation worlds with 2D Physics CoreCreate additional physics worlds so you can simulate separate groups of objects under different settings, such as gravity, in the same scene.
Collisions and interactions in 2D Physics CoreConfigure and detect collisions between 2D Physics Core objects, using contact filters, layers, and events.
Run 2D physics in 3D space with 2D Physics CoreCreate a 2D physics world at any angle in 3D space, instead of the traditional x, y plane that faces the camera.
Optimize 2D Physics Core with multithreadingTo improve the performance of 2D physics, run the simulation and your own code on multiple threads.

Additional resources