Version: Unity 6.5 Alpha (6000.5)
Language : English
Destroy Physics Core 2D API objects and manage memory
Configure Physics Core 2D API objects with definitions

Configuring Physics Core 2D API scenes

Configure properties such as gravity, friction, position, and shape on a world, body, or shape using the Physics Core 2D API.

Note: This documentation is about writing C# scripts using the Unity.U2D.Physics API. To use 2D physics in the Unity Editor using components like the Rigidbody 2D component, refer to 2D physics instead.

Topic Description
Configure objects with definitions Create a definition object to configure properties such as gravity, friction, position, and shape.
Configure global Physics Core 2D API settings To configure layers, default definition values, and global settings, create and assign a Physics Core Settings 2D asset.
Attach custom data to objects Attach values and physics masks to physics objects so you can fetch them later.

Additional resources

Destroy Physics Core 2D API objects and manage memory
Configure Physics Core 2D API objects with definitions