Class ColliderUtilities
Contains utility functions related to Colliders
Namespace: WeaverCore.Utilities
Assembly: WeaverCore.dll
Syntax
public static class ColliderUtilities
Methods
| Edit this page View SourceGetBoundsSafe(PolygonCollider2D)
Gets the world space boundaries of a polygon collider
Declaration
public static Bounds GetBoundsSafe(this PolygonCollider2D collider2D)
Parameters
| Type | Name | Description |
|---|---|---|
| PolygonCollider2D | collider2D | The collider to get the bounds of |
Returns
| Type | Description |
|---|---|
| Bounds | Returns the boundaries of the polygon collider |