View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.1.0
- Last updated
- First released
- Unity version
- 2019.4.13 or later
- Package size
- 466 KB
- Files
- 11
- Favorites
- 50
- Views in the past week
- 8
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
Keywords
Polygon Collider 2D Solver
Price Free
Get it free on Asset Store (opens in new tab)
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 3
Polygon Collider 2D Solver screenshot 1
About this asset
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!
From the publisher's Asset Store listing.
Technical details
How does it work?
- Receives Collision events from OnCollisionStay 2D.
- Checks whether the object is inside the polygon or not.
- Finds the closest point to polygon
- Changes object position
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2019.4.13f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.