Version: Unity 6.7 Alpha (6000.7)
Language : English
Physics Core 2D API workflow
Create a world with the Physics Core 2D API

Creating a scene with the Physics Core 2D API

Create and debug a scene that uses 2D physics with 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
Create a physics world Create a new world to add 2D physics objects to, or fetch the default world Unity automatically creates.
Create a physics object Create a 2D physics body, then attach shapes to the body.
Add a sprite Add a SpriteRenderer component to a GameObject that has a physics script attached.
Move a GameObject Configure a 2D physics script to update the Transform component of a GameObject.
Draw a debug visualization of objects Configure how Unity draws 2D physics objects in the Unity Editor or at runtime, and draw your own shapes.
Combine shapes To combine physics shapes into a compound shape, create a composer using a PhysicsComposer object.
Connect objects with joints Create a connection or constraint between two physics objects.
Destroy objects and manage memory Destroy a world, body, and shape when you no longer need them, and free up memory when necessary.

Additional resources

Physics Core 2D API workflow
Create a world with the Physics Core 2D API