Polygon Collider 2D Solver 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

by Script Boy (opens in new tab)

2 ratings, too few to average

Price Free

Get it free on Asset Store (opens in new tab)

Affiliate link · Purchases support this site

Price history

Last 6 months

USD
Price history for Polygon Collider 2D Solver, 6 months Current Free; lowest Free; highest Free in this period. $0 Jun Jul Aug Sep Oct Nov

Asset preview

1 / 3

Polygon Collider 2D Solver screenshot 1

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?

  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

Compatibility

Render pipelines supported in each Unity version
Unity version Built-in URP HDRP Custom
2019.4.13f1 Compatible Compatible Compatible Compatible

As listed on the Asset Store.