Version: 2022.2
Language : English
Leaf Group Properties
Built-in 3D Physics

Physics

Unity helps you simulate physics in your Project to ensure that the objects correctly accelerate and respond to 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
, gravity, and various other forces. Unity provides different physics engine implementations which you can use according to your Project needs: 3D, 2D, object-oriented, or data-oriented. This page provides the links to their documentation.

You can achieve some basic physics goals with the user interface, but for more control over the simulation, you need some familiarity with C#. To develop your C# skills, see the Unity Learn Junior Programmer course.

Built-in physics engines for object-oriented projects

If your project is object-oriented, use the Unity’s built-in physics engine that corresponds to your needs:

Physics engine packages for data-oriented projects

If your project uses Unity’s Data-Oriented Technology Stack (DOTS), you need to install a dedicated DOTS physics package. The available packages are:

  • Unity Physics package: the DOTS physics engine you need to install by default to simulate physics in any data-oriented project.
  • Havok Physics for Unity package: an implementation of the Havok physics engine for Unity, to use as an extension of the Unity Physics package. Note that this package is subject to a specific licensing scheme.

Additional information resources

Leaf Group Properties
Built-in 3D Physics
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961