com.unity.physics 6.5.0
Notes: processed
Download Options
Direct package downloads captured from Unity's package registry.
No direct package download is available for this version.
Unity Compatibility
Minimum Unity: 6000.5 (0a2)
Package Dependencies
- com.unity.burst (1.8.26)
- com.unity.collections (6.5.0)
- com.unity.entities (6.5.0)
- com.unity.mathematics (1.3.2)
- com.unity.modules.imgui (1.0.0)
- com.unity.modules.jsonserialize (1.0.0)
- com.unity.test-framework (1.6.0)
Features
- In order to enable advanced physics-based game mechanics in your project, we added the new `Direct Solver` as an additional solver option in Unity Physics. This new solver enables accurate and stable simulation of physical systems and mechanical components involving high mass and stiffness ratios, long joint sequences and loops, and contacts with friction. This makes it possible to add more advanced physical components to your projects including complex gearing systems, chains and ropes and more, and unlocks a variety of use cases ranging from physics-based puzzle game mechanics over realistic AR/VR-based object manipulation and stacking to advanced industrial scenarios such as robotics. The new solver can be selected in custom authoring using the newly added `Solver Type` properties in the `Physics Body` authoring component as well as in the custom joint authoring components. It can be selected in built-in authoring by adding the new `Solver Type` authoring component alongside the corresponding built-in `Rigidbody` or `Joint` authoring components. By default, the previous `Iterative Solver` will be used and it can now conveniently be complemented by the new `Direct Solver` only for the portions of your project that require the additional accuracy. This way, your projects can now benefit from the best of both worlds: maximum performance for common use cases through the default `Iterative Solver`, and maximum accuracy for more advanced use cases through the newly added `Direct Solver`.
Improvements
- It is now possible to simulate a significantly larger number of joints and rigid bodies. Previously, the maximum number of joints that could be simulated was limited to about 32 thousand. With a single humanoid ragdoll easily requiring up to 20 joints, this limited the number of such ragdolls to less than two thousand. Now, more than 500 million joints can be simulated at the same time allowing you to add many more articulated components and ragdolls to your projects. Likewise, the maximum number of supported rigid bodies was increased from about 16 million to more than 2 billion.
- Certain parts of the solver scheduling preparation phase have been parallelized, providing increased performance in multi-threaded simulations.
- Package is now a core package embedded in Unity.
Bug Fixes
- Correctly set the physics world index of joint entities baked from built-in joint authoring components to the value provided by a `PhysicsWorldIndexAuthoring` component that is present on the same joint's game object. Previously, a `PhysicsWorldIndexAuthoring` had no effect on the physics world index of baked joint entities, leaving their physics world index the default, which prevented them from being simulated within the correct physics world.
- Make sure the `Collider` query functions `CheckSphere`, `CheckBox` and `CheckCapsule` work properly when using `QueryInteraction.IgnoreTriggers` as query interaction.
