Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Physics
This content is hosted by a third party provider that does not allow video views without acceptance of Targeting Cookies. Please set your cookie preferences for Targeting Cookies to yes if you wish to view videos from these providers.
1/4
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2019.4.13f1
Compatible
Compatible
Compatible
Description

The problem :

The Box2D Physics Engine doesn't support concave shapes. Instead, It generates multiple convex shape. In this way our objects may get stuck between these convex shapes.


The solution:

We can solve this problem by adding PolygonCollider2DSolver component!

Technical details

How does it work?

  1. Receives Collision events from OnCollisionStay 2D. 
  2. Checks whether the object is inside the polygon or not. 
  3. Finds the closest point to polygon 
  4. Changes object position

Polygon Collider 2D Solver

(not enough ratings)
47 users have favourite this asset
(47)
FREE
11 views in the past week
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR
FREE