Version: Unity 6.3 LTS (6000.3)
Language : English
Physics Material 2D reference
Get started with the LowLevelPhysics2D API

2D physics with the LowLevelPhysics2D API

Create and control a 2D physics sceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary
in a C# script using the LowLevelPhysics2D API.

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

Topic Description
Get started with the LowLevelPhysics2D API Learn about the LowLevelPhysics2D API and how to create a 2D physics scene.
Creating a scene with the LowLevelPhysics2D API Create and debug a scene that uses 2D physics.
Configuring LowLevelPhysics2D API scenes Configure 2D physics objects and global settings, and attach custom data to physics objects.
Collisions and interactions in the LowLevelPhysics2D API Enable and detect collisionsA collision occurs when the physics engine detects that the colliders of two GameObjects make contact or overlap, when at least one has a Rigidbody component and is in motion. More info
See in Glossary
between 2D physics objects, and cast rays to check for intersections.
Run 2D physics in 3D space using the LowLevelPhysics2D API Create a 2D physics world at any angle in 3D space, instead of the traditional x, y plane that faces the cameraA component which creates an image of a particular viewpoint in your scene. The output is either drawn to the screen or captured as a texture. More info
See in Glossary
.
Optimize the LowLevelPhysics2D API To improve the performance of 2D physics, run the simulation and your own code on multiple threads.
Reference for the LowLevelPhysics2D API Explore the properties and settings you can use to configure the global settings of the LowLevelPhysics2D API, and set the default values for objects like worlds, bodies, and shapes.

Additional resources

Physics Material 2D reference
Get started with the LowLevelPhysics2D API
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961