Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Official 2D Physics in Unity 2022.1

Discussion in '2D' started by rustum, Aug 26, 2022.

  1. rustum

    rustum

    Unity Technologies

    Joined:
    Feb 14, 2015
    Posts:
    190
    2D Physics in Unity 2022.1
    Delaunay Tessellation.png

    Hi 2D folks! We have new updates for 2D Physics in Unity 2022.1!

    What’s new?
    • Delaunay tessellation
      • The PolygonCollider2D, CompositeCollider2D, and TilemapCollider2D components produce multiple polygon physics shapes to fill the area of the provided path outlines. Those polygon physics shapes can become too numerous, too thin or too small, especially on curved outlines. In some cases, some of these are filtered out by the physics engine itself as it cannot use them.
      • We’re introducing Delaunay tessellation when producing these polygon physics shapes, which produces far superior results in these cases; it not only reduces the quantity of polygon physics shapes that are too thin or small but also generally produces fewer polygons to cover the same area.
    Samples
    Check out the 2D Physics Samples github repo. We've added 2 samples to the colliders folder to show the Delaunay tessellation. These are named:
    • PolygonCollider2D_Delaunay
    • CompositeCollider2D_Delaunay
    About 2D Physics
    Read more about the current 2D Physics features here.

    What can you do?
    Try it out and let us know what you think of the additions and improvements. We want to know what works as expected, what doesn’t and what is missing. We’d love to see how you use them as well, so please show off all the cool things that you make with them!
     
  2. Ruskul

    Ruskul

    Joined:
    Aug 7, 2014
    Posts:
    72
    Do you know- In the past, there seemed to be plans for presolve callbacks. Have those been implemented anywhere and I just missed them? At some point they seem to have fallen off the road map, but I didn't hear why.
     
    NotaNaN likes this.
  3. AnaWilliam850

    AnaWilliam850

    Joined:
    Dec 23, 2022
    Posts:
    36
    thanks for the update!